nst / iOS-Runtime-Headers

iOS Objective-C headers as derived from runtime introspection
https://github.com/nst/RuntimeBrowser
7.94k stars 1.61k forks source link

How would I properly use the CoreBluetooth.framework #4

Open blitzxion opened 10 years ago

blitzxion commented 10 years ago

I'm curious to know how I could use the CoreBluetooth.framework headers (shown in this repo).

The usage example doesn't make it very clear on how to use them at all.

Do I need to pull this repo and save off those header files somewhere and reference them?

Should I create a new framework that has those header files in them and reference that somehow in the project to use the newly exposed properties/methods?

Since CoreBluetooth.framework (and its many uses) require the use of protocols/delegates. I don't see those in these headers files. Do I need to create categories or something to have access to these new properties?

So far, I have had no success using any of the CoreBluetooth framework header files.

I hope I'm just misunderstanding the concept here, but a little push in the right direction would be greatly appreciated!

kirb commented 10 years ago

It's public as of iOS 5. Documentation

blitzxion commented 10 years ago

I know that CoreBluetooth has been available since then. I know how to use it normally. But I found these "altered" header files for this framework.

I know about the CoreBluetooth.Framework that is provided by Apple (that can be referenced/added in Build Phases), but I would like to use these and their new properties.

For example, if you open up the CBCharacteristic.h file in this repo, and then open up the one that is (typically) found at:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CoreBluetooth.framework/headers/CBCharacteristic.h

...the one in this repo has numerous "additional" properties and methods that the one that comes with the system doesn't have.

Example: (this repo) CBCharacteristic.h has the property "(id)handle" (system) CBCharacteristic.h doesn't have that property at all.

I guess that I am misunderstanding the point of this repo. Is it just for informational purposes, so its easier to find out what classes have what, or are these headers files provide additional functionality that the normal frameworks don't?