I am trying to make a simple app using ObjC/Cocoa, Xcode 3, IB 3 and Core Data.
I have read Objective-C Programming and Cocoa Programming For Mac OSX (good but out-of-date).
I would like to add a toolbar to my main window. I have dragged an instance of NSToolbar to the window but I am not sure how to go about adding buttons to it.
Can anyone give me a brief idea of how I would add, for example, an 'Add' button to the toolbar, assign it an icon and then explain to me how I would launch a new sheet window when the user clicked on the button?
I'm sorry for asking what (I hope) is a really easy question but I am a recent convert to Cocoa from REALbasic and am struggling with the poor (although extensive) documentation provided by Apple.
Thanks,
MadDoc,
I have read Objective-C Programming and Cocoa Programming For Mac OSX (good but out-of-date).
I would like to add a toolbar to my main window. I have dragged an instance of NSToolbar to the window but I am not sure how to go about adding buttons to it.
Can anyone give me a brief idea of how I would add, for example, an 'Add' button to the toolbar, assign it an icon and then explain to me how I would launch a new sheet window when the user clicked on the button?
I'm sorry for asking what (I hope) is a really easy question but I am a recent convert to Cocoa from REALbasic and am struggling with the poor (although extensive) documentation provided by Apple.
Thanks,
MadDoc,