• 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: NSDocument not receiving notifications from NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument not receiving notifications from NSTextField


  • Subject: Re: NSDocument not receiving notifications from NSTextField
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 28 Feb 2006 08:35:09 -0800
  • Thread-topic: NSDocument not receiving notifications from NSTextField

On Tue, 28 Feb 2006 13:09:49 +0000, Martin Linklater <email@hidden>
said:
>Hi. I'm a noob, so be gentle... I have an NSDocument which contains some
NSTextFields. I want the NSDocument to handle the editing notifications from the
NSTextField. So, during the NSDocument's windowControllerDidLoadNib method I'm
setting the delegate of the NSTextField to self:
>
>[textField setDelegate:self];
>
>Yet the NSDocument isn't receiving any of the editing notifications from the
NSTextView (textDidEndEditing etc).

Don't confuse NSTextField and NSTextView; things are bad enough already! :)

The problem might be that textDidEndEditing: (and note the colon) is the
name of an NSTextField method - it is not the name of a delegate method. See
the docs to find out what the corresponding delegate method is. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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

  • Prev by Date: Re: How to send myself an AppleEvent?
  • Next by Date: Re: vCard -> loss of Identity
  • Previous by thread: Re: NSDocument not receiving notifications from NSTextField
  • Next by thread: Create semi-transparent NSImage
  • Index(es):
    • Date
    • Thread