3

I m going through framework files that comes with iOS, like Twitter.framework. What i can see is that it all contains the .h files, where as i want to see the implementation files, is there any way to view them?

Firdous
  • 4,624
  • 13
  • 41
  • 80

4 Answers4

9

You can't, and in the vast majority of cases you should have no need to beyond your own curiosity.

The .h files are provided so that your code can link to the Apple provided API's. You don't have a technical need to see the implementation and Apple doesn't provide them presumably because they don't want you to see their implementation. There are valid reasons for this such as protecting their intellectual property and maintaining a certain level of security by obscurity within the OS components.

Dolbz
  • 2,078
  • 1
  • 16
  • 25
  • this always bothered me. i don't like having to rely on their documentation to understand how the frameworks operate. they can't include every little detail about the code. it would be much easier if we could see it. on the other, their reasons for keeping the .m's secret are understandable. still a shame though. – Marty Apr 14 '12 at 23:51
3

No, Apple does not supply any implementation files for their frameworks.

justin
  • 104,054
  • 14
  • 179
  • 226
rckoenes
  • 69,092
  • 8
  • 134
  • 166
2

we cant see the m file of any frameworks. all we can get is only .h files.

Prashant Bhayani
  • 692
  • 5
  • 18
2

if the implementation's source files are not provided and a binary is provided for you to link to, then that is by intent. some libraries provide their implementations, and some do not.

justin
  • 104,054
  • 14
  • 179
  • 226