• 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
Still cannot get CF terminology correct
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Still cannot get CF terminology correct


  • Subject: Still cannot get CF terminology correct
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 25 Sep 2014 20:17:07 +1000

I think I'm correct in saying that to get a non-concrete Attributable text string, I need  to use the  method, so, I've tried, with no success.

There's just so many possibilities that I need to one again request help.

I've tried (amongst others) the five permutations below, each with an 'unrecognised selector' error trap error. Without the error trap, the log reports the same.

I found this 
  	CFAttributedStringCreateMutableCopy(NULL, 0, attr_text));
 on the net, but it does not seem to relate to the ASObjC method that's required.

Two questions, please.

1. Am I on the right track to create a non-concrete Attributable string, and if so…

2. What's the correct terminology please?

Regards in frustration,

Santa


set tempAttributedString to mainMessagesAttributedText's attributedSubstringFromRange_({(theStartOfPlainTextParagraph - 1) as integer, theParagraphLength as integer})
set theItemAsString to tempAttributedString's |string|() #<= Attributed string (the required paragraph)
#display dialog theItemAsString as text # <= paragraph text


say 2
try
set theVariedAttributedText to current application's CFAttributedStringCreateMutableCopy({null, theParagraphLength as integer, tempAttributedString})
say 2.1
on error errmsg
display dialog errmsg
end try
try
set theVariedAttributedText to current application's CFAttributedStringCreateMutableCopy(null, theParagraphLength as integer, tempAttributedString)
say 2.2
on error errmsg
display dialog errmsg
end try
try
set theVariedAttributedText to current application's CFAttributedStringCreateMutableCopy_({null, theParagraphLength as integer, tempAttributedString})
say 2.3
on error errmsg
display dialog errmsg
end try
try
set theVariedAttributedText to current application's CFAttributedStringCreateMutableCopy_(null, theParagraphLength as integer, tempAttributedString)
say 2.4
on error errmsg
display dialog errmsg
end try
try
set theVariedAttributedText to current application's CFAttributedStringCreateMutableCopy_CFIndex_CFAttributedStringRef_({null, theParagraphLength as integer, tempAttributedString})
say 2.5
on error errmsg
display dialog errmsg
end try
try
set theVariedAttributedText to current application's CFAttributedStringCreateMutableCopy_CFIndex_CFAttributedStringRef_(null, theParagraphLength as integer, tempAttributedString)
say 2.6
on error errmsg
display dialog errmsg
end try
 _______________________________________________
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

  • Follow-Ups:
    • Re: Still cannot get CF terminology correct
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Requesting even <more> assistance with terminology, please (an update)
  • Next by Date: Re: Still cannot get CF terminology correct
  • Previous by thread: Tracking down problems
  • Next by thread: Re: Still cannot get CF terminology correct
  • Index(es):
    • Date
    • Thread