Re: Get font name and size chosen
Re: Get font name and size chosen
- Subject: Re: Get font name and size chosen
- From: Lorenzo <email@hidden>
- Date: Wed, 23 Jan 2008 18:16:45 +0100
Hi, I have already successfully used the APIs from the NSShadow class.
Anyway, I can't figure out how to subclass those API as
- (void)setShadowBlurRadius:(CGFloat)val
- (void)setShadowColor:(NSColor *)color
- (void)setShadowOffset:(NSSize)offset
such a way, when the use acts on the shadows controls on the font panel, I
can trap the event and modify some data. In my case, I don't have any string
selected, but I have selected a complex object containing text.
I was looking for a way as I have already done with
- (void)changeFont:(id)sender
Best Regards
--
Lorenzo
email: email@hidden
> From: "I. Savant" <email@hidden>
> Date: Wed, 23 Jan 2008 12:07:44 -0500
> To: Lorenzo <email@hidden>
> Cc: Cocoa List <email@hidden>
> Subject: Re: Get font name and size chosen
>
>> Furthermore, do you know how to subclass the "change font shadow parameters"
>> in the Font Panel? I cannot figure out which API I have to subclass.
>> I mean, when you click and drag the controls on the FontPanel which change
>> the shadow of the selected text.
>
> This was asked off-list and Lorenzo is re-posting it for the benefit
> of others. I replied:
>
>> Regarding shadows, read the documentation on NSShadow. All the font
>> panel is doing is creating an NSShadow instance with color, distance,
>> and blur settings (the controls in the font panel) and adding it to
>> the attributes you're getting back.
>
> --
> I.S.
_______________________________________________
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