FROM : Scott Anguish
DATE : Sat Nov 30 21:30:01 2002
On Saturday, November 30, 2002, at 03:57 AM, 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.
>
> Or perhaps there is something missing in the example, the syntax is
> not correct, as if a line is missing at beginning (no opening { and a
> ; on the first line):
> - (void)changeTextFont:(id)sender;
> [[self window] makeFirstResponder:[fontTextField window]];
> [[NSFontManager sharedFontManager] orderFrontFontPanel:self];
> [[NSFontManager sharedFontManager] setSelectedFont:[self font]
> isMultiple:NO];
> }
a missing {... the ; on the end of the first line is OK syntax wise,
and makes it easier to copy and paste into the header.
>
> You see what I mean ? I think NSPreferencePane is specific, and Apple
> is lacking documentation about it.
_______________________________________________
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 : Sat Nov 30 21:30:01 2002
On Saturday, November 30, 2002, at 03:57 AM, 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.
>
> Or perhaps there is something missing in the example, the syntax is
> not correct, as if a line is missing at beginning (no opening { and a
> ; on the first line):
> - (void)changeTextFont:(id)sender;
> [[self window] makeFirstResponder:[fontTextField window]];
> [[NSFontManager sharedFontManager] orderFrontFontPanel:self];
> [[NSFontManager sharedFontManager] setSelectedFont:[self font]
> isMultiple:NO];
> }
a missing {... the ; on the end of the first line is OK syntax wise,
and makes it easier to copy and paste into the header.
>
> You see what I mean ? I think NSPreferencePane is specific, and Apple
> is lacking documentation about it.
_______________________________________________
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

