• 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 Text Disaplaying
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help in Text Disaplaying


  • Subject: Help in Text Disaplaying
  • From: Anoop <email@hidden>
  • Date: Tue, 07 Mar 2006 19:01:31 +0530

Hai,
I tried to add some integer Value as a text in View while I am drawing.  But
the integer coming is the mirror image of some integer.PLEASE  help me to
resolve it.
Codes that I have given are

I gave thiis in BezierPath

 NSFont *myFont=[NSFont fontWithName:@"Tahoma" size:5.0];
    NSLayoutManager *myLayoutManager = [[NSLayoutManager alloc] init];
    NSString *string=[NSString stringWithFormat:@"%f",f];
    NSTextStorage    *myTextStorage = [[NSTextStorage allocWithZone:[self
zone]]
    initWithString:string attributes:[NSDictionary
dictionaryWithObjectsAndKeys:[NSFont fontWithName:@"Courier" size:10.0],
    NSFontAttributeName, nil]];
    [myTextStorage addLayoutManager:myLayoutManager];
[path appendBezierPathWithGlyph:[myLayoutManager glyphAtIndex:0]
        inFont:myFont];
        f=NSMaxX(bounds);
        [myTextStorage addLayoutManager:myLayoutManager];
//Inserting Storage Text in Layout Manager
        myFont = [myTextStorage attribute:NSFontAttributeName atIndex:0
        effectiveRange:NULL];
        [path appendBezierPathWithGlyph:[myLayoutManager glyphAtIndex:0]
        inFont:myFont];

Kindly help me.
--
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

  • Follow-Ups:
    • Re: Help in Text Disaplaying
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: drag and drop
  • Next by Date: handleGetURLEvent:withReplyEvent:
  • Previous by thread: Re: Copying a view from one nib to another
  • Next by thread: Re: Help in Text Disaplaying
  • Index(es):
    • Date
    • Thread