• 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
Re: Accessing Cocoa UI Componets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Accessing Cocoa UI Componets
      • From: William Bumgarner <email@hidden>
    • Re: Accessing Cocoa UI Componets
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Accessing Cocoa UI Componets
      • From: j o a r <email@hidden>
    • Re: Accessing Cocoa UI Componets
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Temporary object created at runtime with Core Data
  • Next by Date: Re: Accessing Cocoa UI Componets
  • Previous by thread: Accessing Cocoa UI Componets
  • Next by thread: Re: Accessing Cocoa UI Componets
  • Index(es):
    • Date
    • Thread