• 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: Cocoa n00b frustrations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa n00b frustrations


  • Subject: Re: Cocoa n00b frustrations
  • From: Michael Vannorsdel <email@hidden>
  • Date: Sat, 7 Jun 2008 21:35:17 -0600

textShouldBeginEditing: and textDidBeginEditing: are generally methods you'd override in a subclass. By default they call the control:textShouldBeginEditing: and controlTextDidBeginEditing: of the delegate (if there is one). The latter are the methods your delegate needs to implement.


On Jun 7, 2008, at 9:44 PM, Charles Jenkins wrote:

Save everything, build and run. The window will show up with the text fields in place and with their text already set by awakeFromNib. However, you can edit them all you like and see in the log that textShouldBeginEditing and textDidBeginEditing are never called.

I copied those method signatures directly from the NSTextField reference in the documentation, to eliminate any possibility that a malformed method signature could prevent delegation from working as expected.

I am sure the reason why these methods never get called is painfully obvious to one of you more experienced Cocoa programmers, but there is some piece of information that I don't have which is preventing me from writing or hooking up these methods properly. Can you tell me what it is?

Also, there is a reason I am using this WhatKb app to ask my delegation question. When we get the delegation to work and the methods are called, I believe we will find that TISCopyCurrentKeyboardInputSource() can frequently return the wrong information, and so I will have followup questions! :-)

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Cocoa n00b frustrations (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Re: Cocoa n00b frustrations
  • Next by Date: Re: Cocoa n00b frustrations
  • Previous by thread: Re: Cocoa n00b frustrations
  • Next by thread: Re: Cocoa n00b frustrations
  • Index(es):
    • Date
    • Thread