PDA

View Full Version : Cocoa: What type of view ?




MacDonaldsd
Jul 31, 2007, 03:23 PM
How would you create a interface like mail ,iTunes where the main window is split in two and you can scale the two section,and indeed hide one section completely ?

Is that done with an instance of NSDrawer ?



robbieduncan
Jul 31, 2007, 03:24 PM
It's a NSSplitView (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSplitView_Class/Reference/Reference.html)

MacDonaldsd
Jul 31, 2007, 03:32 PM
It's a NSSplitView (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSplitView_Class/Reference/Reference.html)

Thanks :D I totally missed that.

As that was easily solved il hijack my thread and ask one more thing.

Is there any good tutorials or information on creating a toolbar at the top of an application ?

Eraserhead
Jul 31, 2007, 03:34 PM
Is there any good tutorials or information on creating a toolbar at the top of an application ?

Look at NSToolbar (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSToolbar_Class/Reference/Reference.html).

robbieduncan
Jul 31, 2007, 03:35 PM
Here's one (http://www.onlamp.com/pub/a/mac/2002/03/15/cocoa.html).

Personally I created a class that creates the toolbars based on a nice simple little plist file (based on some Apple sample code).

I've heard talk that there is a drag&drop Interface Builder version in Leopard :)

MacDonaldsd
Jul 31, 2007, 03:40 PM
Here's one (http://www.onlamp.com/pub/a/mac/2002/03/15/cocoa.html).

Personally I created a class that creates the toolbars based on a nice simple little plist file (based on some Apple sample code).

I've heard talk that there is a drag&drop Interface Builder version in Leopard :)

From the ADC iTunes feed Interface Builder looks a lot better than it is now, so wouldn't supprise me.

Here's hoping :)

Eraserhead
Jul 31, 2007, 05:35 PM
Look at NSToolbar (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSToolbar_Class/Reference/Reference.html).

Right there is clearly more to it than that, I haven't created toolbars before and it looked simple enough however it seems it was deceptive :o. RobbieDuncan's link is far better.