FROM : Scott Anguish
DATE : Fri Dec 06 06:34:39 2002
can you register your preferences pane as a delegate of the window, and
then provide your own field editor using
windowWillReturnFieldEditor:toObject:
??
On Friday, December 6, 2002, at 12:30 AM, Dustin Voss wrote:
>
> On Sunday, December 1, 2002, at 01:50 PM, Yann Bizeul wrote:
>
>>>> do not work :
>>>> -[GeekToolPrefs becomeFirstResponder]: selector not recognized
>>>> -[GeekToolPrefs flagsChanged:]: selector not recognized
>>>
>>> it appears that you're trying to make the GeekToolPrefs (which I'm
>>> assuming is your custom class) the first responder, but it doesn't
>>> inherit from NSResponder, so that's a problem.
>>
>> I think you're right, but how do I make something that could no be
>> first responder get NSFontManager's changeFont: calls ?
>
> Well, I'm writing a preference pane. To solve this sort of problem, I
> make a custom subclass of NSResponder and insert it into the
> appropriate place in the responder chain -- in my case, that place is
> above my pane view.
>
> I'm running in to a problem, though, which you might run in to also.
> The field editor is a sub-view of the window, not of my view, so my
> NSResponder won't intercept actions that filter up from the field
> editor. I'm not quite sure how to fix this problem; I can't supply my
> own field editor, since preference panes can't override the window's
> methods.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Fri Dec 06 06:34:39 2002
can you register your preferences pane as a delegate of the window, and
then provide your own field editor using
windowWillReturnFieldEditor:toObject:
??
On Friday, December 6, 2002, at 12:30 AM, Dustin Voss wrote:
>
> On Sunday, December 1, 2002, at 01:50 PM, Yann Bizeul wrote:
>
>>>> do not work :
>>>> -[GeekToolPrefs becomeFirstResponder]: selector not recognized
>>>> -[GeekToolPrefs flagsChanged:]: selector not recognized
>>>
>>> it appears that you're trying to make the GeekToolPrefs (which I'm
>>> assuming is your custom class) the first responder, but it doesn't
>>> inherit from NSResponder, so that's a problem.
>>
>> I think you're right, but how do I make something that could no be
>> first responder get NSFontManager's changeFont: calls ?
>
> Well, I'm writing a preference pane. To solve this sort of problem, I
> make a custom subclass of NSResponder and insert it into the
> appropriate place in the responder chain -- in my case, that place is
> above my pane view.
>
> I'm running in to a problem, though, which you might run in to also.
> The field editor is a sub-view of the window, not of my view, so my
> NSResponder won't intercept actions that filter up from the field
> editor. I'm not quite sure how to fix this problem; I can't supply my
> own field editor, since preference panes can't override the window's
> methods.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Yann Bizeul | Nov 29, 16:22 | |
| Scott Anguish | Nov 30, 00:10 | |
| Yann Bizeul | Nov 30, 09:57 | |
| Scott Anguish | Nov 30, 21:30 | |
| Yann Bizeul | Dec 1, 22:50 | |
| Dustin Voss | Dec 6, 06:30 | |
| Scott Anguish | Dec 6, 06:34 | |
| Dustin Voss | Dec 11, 07:21 |






Cocoa mail archive

