• 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: Setting the origin of a GC and Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the origin of a GC and Text


  • Subject: Re: Setting the origin of a GC and Text
  • From: Henry McGilton <email@hidden>
  • Date: Mon, 7 Jul 2003 10:39:20 -0700

On Monday, July 7, 2003, at 10:18 AM, Douglas Davidson wrote:

On Monday, July 7, 2003, at 10:05 AM, email@hidden wrote:

Unfortunately it's not that simple. I am porting code from my framework over to OSX. So the internal calls that draw the text don't *know* about the View. I need to implement the same stratagey that is accomplished by "flipping" the view, but have so far come up empty handed. It seems to me that drawing wrapped text bounded by a rectangle should *not* be this difficult. I spent all last night looking around via google for examples on how to do this but wasn't able to find much of anything. Obviously I am missing something or doing something wrong/stupid, I just don't Cocoa well enough to fiugure out what it is :(

Use NSString's drawInRect:withAttributes: or NSAttributedString's drawInRect:, then.


I have come in late to this discussion, but have wondered why you
don't just use an NSTextView instead? Make the NSTextView a subview
of your view, and let it do all the work.

Best Wishes,
........ Henry

===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
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.

References: 
 >Re: Setting the origin of a GC and Text (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Insert Services and Windows menu programmatically
  • Next by Date: Re: Insert Services and Windows menu programmatically
  • Previous by thread: Re: Setting the origin of a GC and Text
  • Next by thread: NSMutableArray subclass (alternatives?)
  • Index(es):
    • Date
    • Thread