• 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
Re: effectiveRange?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: effectiveRange?


  • Subject: Re: effectiveRange?
  • From: David Remahl <email@hidden>
  • Date: Fri, 18 Apr 2003 00:33:56 +0200

I don't have the documentation / headers readily available, but from memory and context I'm pretty sure that the second argument should be a pointer to a range. Like this;

NSRange aRange;
characterAttributes = [stringFromTextStorage attributesAtIndex:count effectiveRange:&aRange];

/ Rgds, David
On fredag, apr 18, 2003, at 00:11 Europe/Stockholm, Mark Ogilvie wrote:

I've been trying to write a simple program that will go through an
NSAttributedString and display in another window a list of all the
attributes (font, color and such) for that string. I thought this
would do it

characterAttributes = [stringFromTextStorage attributesAtIndex:count

effectiveRange:range];

with characterAttributes being an NSDictionary. But the
effectiveRange: portion will not accept any range object I assign it
too. When I try to use NSMakeRange(0,0) I get this message:
lMyDocument.m:63: incompatible type for argument 4 of indirect function
call
and it refuses to compile. It does the same thing when I try a
different number instead of 0. What does the second half of
attributesAtIndex: effectiveRange: want?

Mark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >effectiveRange? (From: Mark Ogilvie <email@hidden>)

  • Prev by Date: effectiveRange?
  • Next by Date: Re: effectiveRange?
  • Previous by thread: effectiveRange?
  • Next by thread: Re: effectiveRange?
  • Index(es):
    • Date
    • Thread