• 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: Who owns the field editor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who owns the field editor?


  • Subject: Re: Who owns the field editor?
  • From: Joshua Emmons <email@hidden>
  • Date: Wed, 12 Dec 2007 13:28:19 -0600

I'm trying to figure out which NSTextField in my window is currently being edited

I usually do something like the following (typed in mail):

NSText *fe = [myWindow fieldEditor:NO ForObject:nil];
if(nil!=fe){
   NSTextField *fieldBeingEdited = [fe delegate];
}

AFAIK, the thing being edited is always the delegate. I assume the delegate of an "unattached" field editor is nil, but haven't tested it.

Cheers,
-Joshua Emmons
_______________________________________________

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: 
 >Who owns the field editor? (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Who owns the field editor?
  • Next by Date: Re: Who owns the field editor?
  • Previous by thread: Re: Who owns the field editor?
  • Next by thread: add menu
  • Index(es):
    • Date
    • Thread