• 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
Creating paths-based region for custom NSTextContainer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating paths-based region for custom NSTextContainer


  • Subject: Creating paths-based region for custom NSTextContainer
  • From: email@hidden
  • Date: Wed, 22 Jan 2003 06:31:08 -0800

I'm looking into a project which would involve subclassing NSTextContainer to wrap text around various NSImages some of which may have non-rectangular regions. I was hoping I could do this in some generalized manner using paths, perhaps leveraging Cocoa's built-in clipping functions.

What I need is the smallest NSRect so that no portion of the NSRect falls in the path. I also need any portion of the NSRect after the path which also does not fall within the path.

In Apple's documentation for NSBezierPath the clipRect: method "Intersects" a clipping path with an NSRect. I don't know what Apple means by intersect, do they mean union? Anyway even if I meddle around with the winding rules I can't get a bounds which resembles what I want.

Anybody know a solution?
_______________________________________________
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: 
 >Problems with NSLayoutManager and NSTextContainer (From: Donald Brown <email@hidden>)

  • Prev by Date: Criminals among us?
  • Next by Date: Re: Problem with validateMenuItem and a Modal Dialog, maybe a bug in Cocoa...
  • Previous by thread: Problems with NSLayoutManager and NSTextContainer
  • Next by thread: Notification of sleep/wake events?
  • Index(es):
    • Date
    • Thread