Re: finding the view
Re: finding the view
- Subject: Re: finding the view
- From: Rich Van Deren (äèä) <email@hidden>
- Date: Wed, 13 Mar 2002 06:58:03 -0800
Hey, this was a little weird for me too when I first learned how to do
it.
It is easy after to do it over and over.
In Objective-C++:
drag your header file from the files list in PB to your main
windows for the Nib in IB.
I always respond replace. Seems to work better.
In Java:
you must add your Outlets from the Classes pane.
Then just connect them to your views.
On Wednesday, March 13, 2002, at 06:38 , Paul Cezanne wrote:
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.
_______________________________________________
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.