Re: Noob Playing with Windows
Re: Noob Playing with Windows
- Subject: Re: Noob Playing with Windows
- From: Jeremy Dronfield <email@hidden>
- Date: Wed, 7 Jul 2004 10:02:18 +0100
On 7 Jul 2004, at 2:51 am, Nicholas wrote:
While I have some programming experience I am new to OS X development
and Cocoa, so please be gentle. I have been fooling around with
Interface Builder and different NSViews in an effort to replicate the
way the System Preferences window displays itself. The window resizes
itself as its content changes. In effect it drops up and down like a
sheet as you click along the toolbar but it does not have modal
properties (at least I don't think it does) because you always have
access to the toolbar. I'm sure there is a way to programmatically
draw the new content (Custom view maybe?), set the new window size and
send -setNeedsDisplay, but is there a way to design each view in
Interface Builder?
It isn't a sheet - just a normal window. You can replicate the multiple
views with a tabless, borderless NSTabView. For a basic example of
getting this working, look at UKPrefsPanel, which you can get from
<
http://www.zathras.de/programming/cocoa_stuff.php>. Once you've got
the hang of that, you could try studying a more sophisticated example -
complete with window resizing which you can get from Shiira (a Safari
clone), the source code of which is available at
<
http://hmdt-web.net/shiira/index-e.html>
Hope this helps. Regards,
-Jeremy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.