• 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
Help In Drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help In Drawing


  • Subject: Help In Drawing
  • From: Anoop <email@hidden>
  • Date: Sat, 04 Mar 2006 04:37:52 +0530

Hai All,
I read one  reply to a bezierPath dawing refer Sketch Example .If some one
have the
complete knowledge in Sketch example please help me to overcome a specific
problem .I guss some one will help me .I am making some changes in Sketch

I am facing a problem to display the width of the line along with each line
.I am having a
Method
-(void)Display
{
 NSRect textBounds=NSZeroRect;
 NSMutableDictionary *attr=[ NSMutableDictionary  dictionary];
 NSString *string=[NSString stringWidthFormat:@"%f",width];//Width is
already caculated//
 textBounds.size=[string sizeWithAttributes:attr];
 [string drawAtPoint:textBounds.origin withAttributes:attr];
}

I would have to call this method that I have declared in Line.m.
Which object would I used for calling this method in drawRect: of
GraphicView
Expecting a specinfic answer:

--
With Regards,
             Anoop


 _______________________________________________
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: Re: Advice on using NSCell
  • Next by Date: Re: curious behavior of Conditionally Sets Enabled in NSTableView
  • Previous by thread: Re: unreliability of NSWorkspace selectFile
  • Next by thread: Printing two different parts
  • Index(es):
    • Date
    • Thread