Creating paths-based region for custom NSTextContainer
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.