• 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: NSTextView without word wrap?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView without word wrap?


  • Subject: Re: NSTextView without word wrap?
  • From: Jonathan Dann <email@hidden>
  • Date: Fri, 23 May 2008 23:08:54 +0100

Its in SMLViewMenuController.m line -(IBAction)lineWrapTextAction:

Jon

On 23 May 2008, at 22:58, David Carlisle wrote:

Looks interesting.  Thanks.

DC

On May 23, 2008, at 3:37 PM, Jonathan Dann wrote:

You may also like to look at the source code to Smultron by Peter Borg. It's in there but I forget exactly.

http://smultron.sourceforge.net/

Jon

On 23 May 2008, at 21:55, David Carlisle wrote:

I made some guesses at which statements to copy from BiScrollAspect.m and came up with the following awakeFromNib. I'm not sure which statements are the most relevant, and why, but it seems to do what I need.

- (void) awakeFromNib {
const CGFloat LargeNumberForText = 1.0e7;
[[textView textContainer] setContainerSize:NSMakeSize(LargeNumberForText, LargeNumberForText)];
[[textView textContainer] setWidthTracksTextView:NO];
[[textView textContainer] setHeightTracksTextView:NO];
[textView setAutoresizingMask:NSViewNotSizable];
[textView setMaxSize:NSMakeSize(LargeNumberForText, LargeNumberForText)];
[textView setHorizontallyResizable:YES];
[textView setVerticallyResizable:YES];
}


On May 23, 2008, at 12:03 PM, Douglas Davidson wrote:


On May 23, 2008, at 10:33 AM, David Carlisle wrote:

I've spent the last few hours trying to create an NSTextView without word wrap. The BiScrollAspect.m file in the textSizingExample project file is no help at all.

No help in that it doesn't do what you want, or no help in that you can't get it working in your app, or no help in some other way?


Douglas Davidson


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
@gmail.com


This email sent to email@hidden



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTextView without word wrap?
      • From: David Carlisle <email@hidden>
References: 
 >NSTextView without word wrap? (From: David Carlisle <email@hidden>)
 >Re: NSTextView without word wrap? (From: Douglas Davidson <email@hidden>)
 >Re: NSTextView without word wrap? (From: David Carlisle <email@hidden>)

  • Prev by Date: Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)
  • Next by Date: Errors from NSTreeController (or NSOutlineView?)
  • Previous by thread: Re: NSTextView without word wrap?
  • Next by thread: Re: NSTextView without word wrap?
  • Index(es):
    • Date
    • Thread