• 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
Re: ireegular shaped TextContainer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: NSLayoutManager - measuring text with trailing space
  • Next by Date: Re: How to draw a rotated image in a view?
  • Previous by thread: Re: NSLayoutManager - measuring text with trailing space
  • Next by thread: Problem with Multiple Level Bindings
  • Index(es):
    • Date
    • Thread