• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Accessing Cocoa UI Componets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing Cocoa UI Componets


  • Subject: Accessing Cocoa UI Componets
  • From: Jerrod Fowkes <email@hidden>
  • Date: Tue, 25 Apr 2006 06:39:50 -0700 (PDT)

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:

This email sent to email@hidden

  • Prev by Date: Re: Temporary object created at runtime with Core Data
  • Next by Date: Re: can't archive NSValue (actually, can't keyed-archive NSValue)
  • Previous by thread: NSView's -frame
  • Next by thread: Re: Accessing Cocoa UI Componets
  • Index(es):
    • Date
    • Thread