views:

47

answers:

1

I find it hard to find some working examples of Cocoa/Carbon framework functions, whereas there are well documented function prototypes from Apple.

For example, LSOpenItemsWithRole function has well defined prototype, but I guess some examples would be a great help for a mac programming beginners like me.

How can I find some working examples for Cocoa/Carbon API? Doesn't Apple provide that? MSDN has good working examples, I expect similar thing from Apple.

+1  A: 

You can find some sample code on Apple's developer site, and some of it can also be found within the Xcode documentation viewer. In fact in some cases, but probably not enough, you'll see links to sample code right at the bottom of the API documentation.

JWWalker