• 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: [repost] Using NSFontPanel in a prefPane ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [repost] Using NSFontPanel in a prefPane ?


  • Subject: Re: [repost] Using NSFontPanel in a prefPane ?
  • From: Yann Bizeul <email@hidden>
  • Date: Sat, 30 Nov 2002 09:57:25 +0100

Hi,

I'm talking about a real prefPane, the .prefPane going in the System
Preferences application. And I think that's my problem.
According to your example, it seems the firstResponder receive the
changeFont: message, because of :
[[self window] makeFirstResponder:[fontTextField window]];

but how can I make my NSPreferencePane class the first reponder ?
[[[ self mainView ] window ] makeFirstResponder: [ fontTextField window
]];

do not work :
-[GeekToolPrefs becomeFirstResponder]: selector not recognized
-[GeekToolPrefs flagsChanged:]: selector not recognized

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];
}

You see what I mean ? I think NSPreferencePane is specific, and Apple
is lacking documentation about it.

Thanks

Le samedi, 30 nov 2002, ` 00:10 Europe/Paris, Scott Anguish a icrit :

> I've not gotten the chance to update the source to 10.2 yet for this
> article (it's the next one, Part 4 of HTMLEditorX sets up the
> preferences stuff, it just needs the UI).. but the 5th article in the
> old HTMLEditor series does this, and explains the situation
>
> http://www.stepwise.com/Articles/Technical/HTMLEditor/HTMLEditor-5.html
>
>
>
>
> On Friday, November 29, 2002, at 10:22 AM, Yann Bizeul wrote:
>
>> Hi,
>>
>> I have problems using NSFontManager and NSFontPanel into a
>> preferencePane, and I know this is possible, like in TinkerTool.
>> I open the NSFontPanel successfully, but never called when changing
>> the
>> selection of it.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
>
--
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacri ` MacOS X
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [repost] Using NSFontPanel in a prefPane ?
      • From: Scott Anguish <email@hidden>
References: 
 >Re: [repost] Using NSFontPanel in a prefPane ? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: multiple OpenGL views in a Cocoa Application.
  • Next by Date: [ANN] Vermont Recipes official Web site
  • Previous by thread: Re: [repost] Using NSFontPanel in a prefPane ?
  • Next by thread: Re: [repost] Using NSFontPanel in a prefPane ?
  • Index(es):
    • Date
    • Thread