finding the view
finding the view
- Subject: finding the view
- From: Paul Cezanne <email@hidden>
- Date: Wed, 13 Mar 2002 09:38:23 -0500
Hello
I'm new to Cocoa, working on my first Cocoa project. I've used
PowerPlant almost exclusively and MacApp before that so I'm not new to
class libraries.
I'm trying to do something which would be very easy in PowerPlant and
I'm unable to find the right idiom in Cocoa.
I have a window with a view in it. I want to programmatically replace
that view with another view. I know about setContentView but my question
is, how do I FIND the new view so I can pass it to setContentView.
In PowerPlant I would have called FindViewByID (or something like that)
and passed it the 32 bit "code" for the view that I setup in Constructor.
Right now I have a nib file with all my views inside of it but I don't
know how to find them so I can pass them to setContentView.
I've searched the Learing Cocoa and the Hillegass books to no avail.
Thanks for any advice. I'm sure this is just an idiom issue, I'm still
thinking PowerPlant.
Paul
_______________________________________________
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.