• 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: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 25 Apr 2006 18:01:40 +0200

On 25/04/06, Jerrod Fowkes <email@hidden> 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:] ?


Hi,

 I'd love to help, but I have no clue what you're trying to achieve (that
you're quoting other messages in the wrong order isn't helping either). Give
us more (and better) info. What "form"? If it's not an outlet, why not make
it one? And you *do* have an actual object, you might just not have access
to a pointer right now. Outlets are one way to do that. Another is to keep
around the pointer after creating it if you're doing an alloc/initWithRect:.

 I think what you really want to do is put those elements into a NIB file of
their own and then use NSNibLoading to instantiate several copies of them or
so, and have a controller object for each NIB instance that "owns" the
objects "in it". That controller would then have the needed outlets.

 But I'm wildly guessing here. Give us more high-level info on what you're
trying to achieve, and please try to keep an eye on the readability of your
e-mails and quote relevant portions and keep stuff in an order that we can
actually make out what refers to what. Thanks.

Cheers,
M. Uli Kusterer
------------------------------------------------------------
       "The Witnesses of TeachText are everywhere..."
                   http://www.zathras.de
 _______________________________________________
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: Jerrod Fowkes <email@hidden>
References: 
 >Re: Accessing Cocoa UI Componets (From: Jerrod Fowkes <email@hidden>)

  • Prev by Date: Re: Accessing Cocoa UI Componets
  • Next by Date: Re: Using date and time values in coredata
  • Previous by thread: Re: Accessing Cocoa UI Componets
  • Next by thread: Re: Accessing Cocoa UI Componets
  • Index(es):
    • Date
    • Thread