• 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: Object from TableView cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Object from TableView cell


  • Subject: RE: Object from TableView cell
  • From: Gregory Weston <email@hidden>
  • Date: Thu, 13 Jun 2002 23:41:00 -0400

I must be missing something...

On 6/13/02 at 4:55 AM, "Cristian Savu" <email@hidden> wrote:

> > -----Original Message-----
> > From: Phillip Morelock [mailto:email@hidden]
> > Then just register for the notification with nil and you'll
> > get all of them.
> >
> > When the notification comes in, your
> >
> > - (void) DoCreateMenu: (NSNotification *) note
> > {
> > //
> > }
> >
> > method will get called and the NSNotification * that is
> > passed to it looks
> > like this:
> >
> > - name
> > - object
> > - userInfo
> >
> > Get the - object to find out which one sent the notification, then act
> > appropriately. Isn't this what you're trying to do?
>
> I already thought at this but a subclassing of NSPopUpButton is necessary

Why? I don't get why you have to subclass NSPopUpButton to handle the
notifications it sends.

> and I was trying to avoid this. Also, using nil as object: argument is an
> example of bad programming.

Why? I'm under the impression that passing nil as the object argument is the
defined mechanism for indicating that you want these notifications regardless of
the originating instance. I'm at a loss to understand how using something in the
way it's documented is "bad programming."

G
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Object from TableView cell
      • From: Cristian Savu <email@hidden>
  • Prev by Date: Re: Doing the two-step?
  • Next by Date: [OT] netinfod
  • Previous by thread: RE: Object from TableView cell
  • Next by thread: Re: Object from TableView cell
  • Index(es):
    • Date
    • Thread