• 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: William Bumgarner <email@hidden>
  • Date: Tue, 25 Apr 2006 09:10:44 -0700

On Apr 25, 2006, at 7: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.

You can certainly connect an outlet to a button in a form. The only time you cannot connect an outlet to a bit of UI in IB is if the UI is dynamically generated (via code).


IB's feedback on the connection is a bit wonky at times, but you can definitely make such a connection.

Hsu <email@hidden> wrote: Why not just use -[NSButton setAlternateImage:] ?

Given what Hsu wrote, he was suggesting that you use the instance method -setAlternateImage:. This would require a reference to -- an outlet connected to -- the button you want to modify. That is, [NSButton setAlternateImage: anImage] is meaningless.


b.bum

_______________________________________________
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


References: 
 >Re: Accessing Cocoa UI Componets (From: Jerrod Fowkes <email@hidden>)

  • Prev by Date: Re: Using date and time values in coredata
  • Next by Date: Re: Accessing Cocoa UI Componets
  • Previous by thread: Re: Accessing Cocoa UI Componets
  • Next by thread: Re: can't archive NSValue (actually, can't keyed-archive NSValue)
  • Index(es):
    • Date
    • Thread