Re: Accessing Cocoa UI Componets
Re: Accessing Cocoa UI Componets
- Subject: Re: Accessing Cocoa UI Componets
- From: "I. Savant" <email@hidden>
- Date: Tue, 25 Apr 2006 10:43:10 -0400
Hello, Jerrod:
I think you need to go back to Cocoa basics for a bit.
Particularly, look for an introduction on the topic of "IBOutlet"
versus "IBAction". In your controller, you created an IBAction for
the button to connect to. You need to also create an IBOutlet for
your button itself. Connect your controller to the button and choose
the new button IBOutlet. That will give you a "channel" through which
to communicate with the button directly.
--
I.S.
On Apr 25, 2006, at 10:30 AM, Jerrod Fowkes 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:] ?
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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