Re: Accessing Cocoa UI Componets
Re: Accessing Cocoa UI Componets
- Subject: Re: Accessing Cocoa UI Componets
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 25 Apr 2006 18:01:40 +0200
On 25/04/06, Jerrod Fowkes <email@hidden> wrote:
>
> I can't, I need the instance of the button on my form. Since it's not an
> outlet, I don't have an actual object of it. except when I click on it
> (sender), however I dont' think I can modify that.
>
> Hsu <email@hidden> wrote: Why not just use -[NSButton
> setAlternateImage:] ?
Hi,
I'd love to help, but I have no clue what you're trying to achieve (that
you're quoting other messages in the wrong order isn't helping either). Give
us more (and better) info. What "form"? If it's not an outlet, why not make
it one? And you *do* have an actual object, you might just not have access
to a pointer right now. Outlets are one way to do that. Another is to keep
around the pointer after creating it if you're doing an alloc/initWithRect:.
I think what you really want to do is put those elements into a NIB file of
their own and then use NSNibLoading to instantiate several copies of them or
so, and have a controller object for each NIB instance that "owns" the
objects "in it". That controller would then have the needed outlets.
But I'm wildly guessing here. Give us more high-level info on what you're
trying to achieve, and please try to keep an eye on the readability of your
e-mails and quote relevant portions and keep stuff in an order that we can
actually make out what refers to what. Thanks.
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden