• 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: Need clarification on categories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need clarification on categories


  • Subject: Re: Need clarification on categories
  • From: Bill Cheeseman <email@hidden>
  • Date: Tue, 19 Mar 2002 12:32:38 -0500

on 02-03-19 11:37 AM, Erik M. Buck at email@hidden wrote:

> I think you have overlooked something fundamental also because I can't
> understand your question.

I guess what you and Ondra are both saying to me is: Have faith. Objective-C
will do what it's supposed to do.

The reason I'm suffering feelings of doubt is that the method I'm trying to
implement in a category is a delegate method, and it doesn't get called when
I think it should. Specifically, the NSControl class reference document says
the controlDidBeginEditing: delegate method will be called whenever a
text-based field is edited in any control that implements the method. But
when I implement the method in a category on NSControl, it doesn't get
called. For example, I click into a field in an NSForm and type a character,
but controlDidBeginEditing: doesn't get called.

OK, I'll implement it in my window controller and make sure the form
appoints the controller as delegate, and everything will work fine. But I'm
curious why it doesn't work when implemented in the category. Is this
another exception to the rule about categories, or am I still missing
something fundamental?

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
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: Need clarification on categories
      • From: Ondra Cada <email@hidden>
    • Re: Need clarification on categories
      • From: "Erik M. Buck" <email@hidden>
    • Re: Need clarification on categories
      • From: Thomas Lachand-Robert <email@hidden>
References: 
 >Re: Need clarification on categories (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: Newbie with stupid question cont.
  • Next by Date: Re: Need clarification on categories
  • Previous by thread: Re: Need clarification on categories
  • Next by thread: Re: Need clarification on categories
  • Index(es):
    • Date
    • Thread