Re: can't get terminology right
Re: can't get terminology right
- Subject: Re: can't get terminology right
- From: Shane Stanley <email@hidden>
- Date: Wed, 24 Sep 2014 21:11:37 +1000
On 24 Sep 2014, at 7:49 pm, Brian Christmas <email@hidden> wrote:
set theVariedAttributedText to initWithAttributedString_(mainMessagesAttributedText's attributedSubstringFromRange_(theStartOfPlainTextParagraph as integer, theEndOfPlainTextParagraph as integer))
Where to start. From the front, an init- method is always an instance method, and it always follows alloc(). You seem to be trying to call it on nothing at all. What do you think that might do?
But the whole bit before the first parenthesis is unnecessary anyway -- if you don't have an attributed string by then, that's not going to magically conjure one up.
At the other end, you're trying to call a method with one underscore, and therefore requiring one parameter, but you're passing two. That's your real problem; the rest is just a case of "keep digging".
The second is I'm trying to retrieve the red, green, blue, alpha vales of an Attributed text character, without success.
set {red1, green1, blue1, alpha1} to itemForAttributes's myFontColor's getRed_green_blue_alpha_(red, green, blue, alpha)
The method says it returns void, and that's what you're getting.
|
_______________________________________________
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