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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]