Re: Accessing Cocoa UI Componets
Re: Accessing Cocoa UI Componets
- Subject: Re: Accessing Cocoa UI Componets
- From: Jerrod Fowkes <email@hidden>
- Date: Tue, 25 Apr 2006 07:30:58 -0700 (PDT)
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:] ?
Karl
On Apr 25, 2006, at 6:39 AM, Jerrod Fowkes wrote:
> Hello,
>
> I have a button on a window that is bound to an action. I need the
> ability to access that button during runtime. I would like to
> change the image of that button when it is clicked and then back
> again when it is clicked again.
>
> Is there a way to do this?
>
> I would like the ability to say;
>
> NSButton* button;
> [[button alloc] init];
> [button setImage: *];
>
> Maybe I can just declare one, and then put it on top of the one
> that I have? -Jerrod
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low
> rates.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40earthlink.net
>
> This email sent to email@hidden
--
Programmers are busy writing the next best idiot proof software. The
universe, in the meantine, is busy making the next best idiot. The
universe is winning.
Homepage:
http://homepage.mac.com/khsu/index.html
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
_______________________________________________
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