Re: NSPredicateEditor losing nextKeyView
On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote: In my sheet, I have a name NSTextField and an NSPredicateEditor. Initially, the tab key works to jump between my name field and the first match field in the predicate editor. However, after changing any of the menus in the line of my predicate editor, the tab key no longer allows the keyfield to rotate out of the NSPredicateEditor back to other fields in my sheet. Is this a bug or do I need to hook up something to make it work? I noticed this happening sometimes in my code too. As a quick fix I just issued a delayed -recalculateKeyViewLoop message on any change of the search predicate when the view was visible. Ashley It does the same thing when adding a row but... NSRuleEditorRowsDidChangeNotification is only sent when changing popup menus or text, not when simply adding a row. Thoughts? Trygve ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSPredicateEditor losing nextKeyView
On Feb 23, 2010, at 2:31 PM, Trygve Inda wrote: On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote: In my sheet, I have a name NSTextField and an NSPredicateEditor. Initially, the tab key works to jump between my name field and the first match field in the predicate editor. However, after changing any of the menus in the line of my predicate editor, the tab key no longer allows the keyfield to rotate out of the NSPredicateEditor back to other fields in my sheet. Is this a bug or do I need to hook up something to make it work? I noticed this happening sometimes in my code too. As a quick fix I just issued a delayed -recalculateKeyViewLoop message on any change of the search predicate when the view was visible. It does the same thing when adding a row but... NSRuleEditorRowsDidChangeNotification is only sent when changing popup menus or text, not when simply adding a row. Thoughts? I have the predicate editor bound to a predicate in my controller. Then in my -setPredicate: method of the controller I'm issuing a delayed recalculation of the key-view loop. You could probably just observe for changes to the predicate on the predicate editor itself but I'm not sure if NSPredicateEditor sends KVO notifications or not for that property. Ashley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSPredicateEditor losing nextKeyView
In my sheet, I have a name NSTextField and an NSPredicateEditor. Initially, the tab key works to jump between my name field and the first match field in the predicate editor. However, after changing any of the menus in the line of my predicate editor, the tab key no longer allows the keyfield to rotate out of the NSPredicateEditor back to other fields in my sheet. Is this a bug or do I need to hook up something to make it work? Thanks, Trygve ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSPredicateEditor losing nextKeyView
On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote: In my sheet, I have a name NSTextField and an NSPredicateEditor. Initially, the tab key works to jump between my name field and the first match field in the predicate editor. However, after changing any of the menus in the line of my predicate editor, the tab key no longer allows the keyfield to rotate out of the NSPredicateEditor back to other fields in my sheet. Is this a bug or do I need to hook up something to make it work? I noticed this happening sometimes in my code too. As a quick fix I just issued a delayed -recalculateKeyViewLoop message on any change of the search predicate when the view was visible. Ashley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com