Re: Restricted FontPanel
Re: Restricted FontPanel
- Subject: Re: Restricted FontPanel
- From: email@hidden
- Date: Mon, 27 May 2013 14:41:47 +0900
Yep.
Tested it even.
Seems step one is subclassing NSFontManager, setting your subclass as the factory ( in main.c no less to get it in early enough to take effect.)
Easy enough to override what you need and add a flag to use NSFontManager implementation where needed.
Beyond that, possibly subclassing NSFontPanel seems necessary as well, but fruitless without accessing private ivars (which are oddly documented in the header)
Seems this kind of use case is just not well accommodated enough to justify the effort over implementing your own complete font panel or at least a font picker.
I hope I am wrong and missed something, but that's my assessment.
That said, a custom original font panel should not be hard, just a fair amount of work.
And who knows where the hooks are to things like the little gear menu and its items.
I suppose an accessory view could do it, but by the time you got that shoehorned in, you could do your own panel.
Sent from my iPhone
On 2013/05/27, at 14:18, Kyle Sluder <email@hidden> wrote:
> On May 26, 2013, at 5:41 PM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
>>
>> The documentation says:
>> "Important: This delegate method is not called in OS X versions 10.3 and later."
>
> Have you confirmed the documentation is correct?
>
> If it is, does NSFontManager.h contain any useful comments?
>
> --Kyle Sluder
_______________________________________________
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