• 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
Wrapping of text around an image or shape.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrapping of text around an image or shape.


  • Subject: Wrapping of text around an image or shape.
  • From: "Sandeep Nair" <email@hidden>
  • Date: Wed, 5 Nov 2008 19:09:15 +0530

Hi All,
I am trying to do text wrapping like pages app does.
i added a View as subview of NSTextView.
i want the text inside the TextView to wrap around
the subview rect (as like in the pages app).

for (glyphIndex = glyphRange.location; glyphIndex < NSMaxRange(glyphRange);
glyphIndex++) {

NSPoint location = [[tV layoutManager] locationForGlyphAtIndex:glyphIndex];

if(NSPointInRect(location, rect))

{

int index = [textView characterIndexForPoint: location];

index = [[tV layoutManager] characterIndexForGlyphAtIndex:glyphIndex];


anyone suggest me the right method to do this..



Thanks in Advance

 Regards


Sandeep
_______________________________________________

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

  • Follow-Ups:
    • Re: Wrapping of text around an image or shape.
      • From: Graham Cox <email@hidden>
    • Re: Wrapping of text around an image or shape.
      • From: "Sandeep Nair" <email@hidden>
  • Prev by Date: Re: Making a Window Class Invocable from Any Thread
  • Next by Date: Re: Wrapping of text around an image or shape.
  • Previous by thread: Strange Build Error = literal-pointer@_OBJC@_cls_refs
  • Next by thread: Re: Wrapping of text around an image or shape.
  • Index(es):
    • Date
    • Thread