Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 1, 2007, 06:08 PM   #1
DJPaul
macrumors newbie
 
Join Date: Oct 2007
cocoa/interface builder question

Hi all, i'm new to Cocoa and Interface Builder (both on Leopard), so you'll have to excuse me.

I'm part way through designing the interface for an application that looks similar to mail.app - by that, I mean an NSOutlineView up the left hand side of the window, and the main content area to right. I've also got a toolbar running across the top of the window.

I want to add a mini-toolbar along the bottom of the window. I have seen these referred to as "bottom button bars" or "status bars" across the web. I would appreciate some pointers how to start doing this. e.g. this bar http://forums.finaljustice.co.uk/Picture%201.png) from Mail.


I've tried the obvious things - IB doesn't let me add > 1 toolbar to a window. I can't drag a window into another window, either (to try to get the background colour/texture of the panel). So... I created a Custom View along the bottom of the screen, and have written some code so it colours this view's area in a lovely green colour.

I've dragged some buttons on top of my Custom View, which render on top - so essentially, this way would work if someone could tell me how I get the View to render the appropriate coloured background**. Unless this is the wrong approach? in which case pointers as to the "correct" method would be appreciated.


**By this I mean; what's the best/official/flavour of the week/most standard colour scheme now in Leopard? e.g. As far as I can see, it's between the Finder vs Mail - Finder has a much darker bar along the bottom of the window, whereas Mail has a much lighter one.
I am leaning towards the lighter version; either way, I would need to draw this texture/colour into my Custom View. How can I do this?

Many thanks for reading and for your help
DJPaul is offline   0 Reply With Quote
Old Nov 1, 2007, 11:11 PM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
You can find examples of this UI here and here.
kainjow is offline   0 Reply With Quote
Old Nov 6, 2007, 06:00 AM   #3
sdfilter
macrumors newbie
 
Join Date: Nov 2007
Yeah, the change from IB 2 to IB 3 is driving me nuts. I'm working my way through Hillegass, and really struggling to make the change.

For example, in the discussion of CustomViews, he describes the process of generating the files for the class and then extending them. However, I can't figure out the process in IB 3. The classes tab is gone, so the process has changed pretty significantly. The best I've come up with:

1. Drag a CustomView.
2. From File menu, Write Class Files
3. Go to X Code and manually add the generated files to the project.
4. Inspect the generated header file and realize that it doesn't even extend NSView, so manually add all the "stuff" that used to be generated by IB 2.

Clearly I'm doing this incorrectly, but I can't find any guidance regarding the correct approach.
sdfilter is offline   0 Reply With Quote
Old Nov 6, 2007, 08:40 AM   #4
devman
macrumors 65816
 
devman's Avatar
 
Join Date: Apr 2004
Location: AU
Quote:
Originally Posted by sdfilter View Post
Yeah, the change from IB 2 to IB 3 is driving me nuts. I'm working my way through Hillegass, and really struggling to make the change.

For example, in the discussion of CustomViews, he describes the process of generating the files for the class and then extending them. However, I can't figure out the process in IB 3. The classes tab is gone, so the process has changed pretty significantly. The best I've come up with:

1. Drag a CustomView.
2. From File menu, Write Class Files
3. Go to X Code and manually add the generated files to the project.
4. Inspect the generated header file and realize that it doesn't even extend NSView, so manually add all the "stuff" that used to be generated by IB 2.

Clearly I'm doing this incorrectly, but I can't find any guidance regarding the correct approach.
http://developer.apple.com/documenta...05344-CH7-SW31
devman is offline   0 Reply With Quote
Old Nov 6, 2007, 11:02 AM   #5
sdfilter
macrumors newbie
 
Join Date: Nov 2007
Thanks Devman. I clearly got a bit ahead of myself and skimmed the docs too quickly. Don't know how I managed to miss this.
sdfilter is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Interface Builder WTF. SolarShane Mac Programming 2 Mar 12, 2014 02:38 AM
Pashua gui tool interface elements anything similar in xcode interface builder wild4life2013 Mac Programming 1 Aug 10, 2013 08:13 PM
OpenGL ES without interface builder? blueshogun96 iPhone/iPad Programming 1 Feb 10, 2013 01:04 PM
Im having a bit of an issue with interface builder adildacoolset iPhone/iPad Programming 5 Oct 12, 2012 12:51 PM
Interface Builder Crashes Every Time wickerman1893 iPhone/iPad Programming 5 Jun 29, 2012 06:57 AM

Forum Jump

All times are GMT -5. The time now is 03:46 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC