Re: Trying to set pop-up button list of fonts to attributed font names
Re: Trying to set pop-up button list of fonts to attributed font names
- Subject: Re: Trying to set pop-up button list of fonts to attributed font names
- From: Shane Stanley <email@hidden>
- Date: Thu, 02 Oct 2014 19:44:27 +1000
I mis-typed -- it's setAttributedTitle:.
My point was simply that you've done the research and found the method, but haven't used it.
But now that I look at your code again, you *have* tried to use it -- it just wasn't where I'd expect to see it. So this gets back to my list of points:
>> Are you calling methods on the right things?
Here's your code:
> my fontButton's |menu|()'s addItemWithTitle_action_keyEquivalent_(setAttributedTitle_(eachAttributedFontString), "changeTheFont:", "")
And we know it's -setAttributedTitle:, so therefore it's an instance method, and we know from the documentation it's an NSMenuItem method. So what are you calling it on? Your code shows that you're not calling it on anything it all, except perhaps a prayer.
Is that enough of a clue?
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden