• 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
Delegate Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delegate Question


  • Subject: Delegate Question
  • From: "John Farmer" <email@hidden>
  • Date: Fri, 5 Sep 2003 09:14:48 -0700

I have a situation in my application where I have 2 different NSComboBoxes
that perform two different functions. I have also implemented the 2 of the
delegate methods for the NSComboBox control (comboBoxSelectionIsChanging, and
comboBoxSelectionDidChange), and set delegate of both of the NSComboBoxes to
my controller class. My problem is that I need to be able to able to identify
which NSComboBox object is calling the delegate, since I need to be able to do
different things in the delegate depending on the calling object. I looked in
all the usual places for answers (stepwise, cocoadev, cocoadevcentral, apple
dev list, and apple documentation), but I haven't been able to find a answer
to this seemingly common conundrum. I looked into the methods for the
NSNotification object that is passed in, and it seems to give no clue to who
the caller of the delegate is. I'm sure that I'm missing something quite
elementary (due to the lack of answers), and admittedly I am still new to the
whole cocoa thing.

Thanks in advance,

John D. Farmer
_______________________________________________
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: Delegate Question
      • From: "Alastair J.Houghton" <email@hidden>
  • Prev by Date: Re: Split views, tab views and IB
  • Next by Date: Re: Delegate Question
  • Previous by thread: Re: Split views, tab views and IB
  • Next by thread: Re: Delegate Question
  • Index(es):
    • Date
    • Thread