RE: ESC while editing NSOutlineView subclass
RE: ESC while editing NSOutlineView subclass
- Subject: RE: ESC while editing NSOutlineView subclass
- From: Ulai Beekam <email@hidden>
- Date: Thu, 23 Apr 2009 15:15:17 +0000
- Importance: Normal
Hi,
I find to be a strange problem. I would think that the control:textView:doCommand... method should indeed get called. Are you absolutely sure you are spelling it right? Did you put an NSLog(@"foo"); in there to make sure it is getting called?
U
----------------------------------------
> From: email@hidden
> To: email@hidden
> Date: Thu, 23 Apr 2009 15:04:52 +0200
> Subject: ESC while editing NSOutlineView subclass
>
> Hello list,
>
> I've created a subclass of NSOutlineView, MyEditorOutlineView
> (implements only textDidEndEditing: and keyDown:). When a row is being
> edited, I'd like the escape key to stop editing. I'm having trouble
> working with the field editor.
>
> I implemented - (BOOL)control:(NSControl *)control textView:
> (NSTextView *)textView doCommandBySelector:(SEL)command in
> MyEditorOutlineView, thinking that the outline view would be the field
> editor's delegate, and so this method would be called. It's not
> called. I'm unsure how to check the field editor's delegate, or if I'm
> even on the right track.
>
> I was also thinking about returning a custom field editor for
> instances of MyEditorOutlineView, and having the field editor handle
> ESC itself. This seems like overkill with all the delegate methods
> available, though.
>
> Thanks in advance for any help.
>
> -- Kevin
>
> Kevin Gessner
> http://kevingessner.com
> email@hidden
>
>
>
>
>
> _______________________________________________
>
> 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
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us_______________________________________________
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