Re: ireegular shaped TextContainer
Re: ireegular shaped TextContainer
- Subject: Re: ireegular shaped TextContainer
- From: Ben Lachman <email@hidden>
- Date: Tue, 3 Oct 2006 11:40:51 -0400
Read the documentation. It goes over it in depth. In brief, you'll
have subclass NSTextContainer. The methods you should look at (and
then override) are:
- (NSRect)lineFragmentRectForProposedRect:(NSRect)proposedRect
sweepDirection:(NSLineSweepDirection)sweepDirection movementDirection:
(NSLineMovementDirection)movementDirection remainingRect:(NSRect *)
remainingRect;
- (BOOL)isSimpleRectangularTextContainer;
- (BOOL)containsPoint:(NSPoint)aPoint
->Ben
--
"I'm so cool you could keep a side of meat in me for a month! I'm so
hip I have trouble seeing over my pelvis!"
- Zaphod Beeblebrox, The Hitchhiker's Guide to the Galaxy
On Sep 30, 2006, at 1:31 AM, Shruti Chopade wrote:
hi All,
I am creating different irregular shapes in my cocoa
application. I want to set text Container for those
shapes.
Can anybody give some hint or sample code for
achieving the same.
Thanks in advance.
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden