Re: How is 'truncate last visible line' accomplished?

2010-07-03 Thread Graham Cox
On 03/07/2010, at 1:49 PM, Graham Cox wrote: > How is 'truncate last visible line' accomplished for wrapped text? > > I have a custom cell that I would like to have this behaviour in. Most of the > system controls/cells support this but it's not clear how it's done for > custom cells. I though

Re: Calling javascript from Cocoa 'facelessly'

2010-07-03 Thread Izidor Jerebic
You did not spell out where exactly this code will run - who is going to be the host application. To prevent all stupid errors (typing, etc.), I would suggest you start from the beginning - create a simple GUI app, make a window with WebView, and then load your stuff into this WebView. Af

Re: How is 'truncate last visible line' accomplished?

2010-07-03 Thread Jim McGowan
On 3 Jul 2010, at 21:17, Graham Cox wrote: > >> How is 'truncate last visible line' accomplished for wrapped text? >> >> I have a custom cell that I would like to have this behaviour in. Most of >> the system controls/cells support this but it's not clear how it's done for >> custom cells. I t

Re: Calling javascript from Cocoa 'facelessly'

2010-07-03 Thread Geoffrey Holden
Thanks for this. I'll try that. I have produced WebViews before with no problems, although this is the first time that I've tried to do it facelessly. What I'd really like, of course, is a means of running JavaScript without a webview - i.e. provide a link to the JavaScript directly, without

NSAttributedString & iOS 4

2010-07-03 Thread Mike Manzano
I see that NSAttributedString is in iOS 4, but both UITextView nor UITextField's text property takes an NSString. Does that mean these views are off limits if I want to use an attributed string? Thanks, Mike___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: NSAttributedString & iOS 4

2010-07-03 Thread Scott Anguish
On Jul 3, 2010, at 8:12 PM, Mike Manzano wrote: > I see that NSAttributedString is in iOS 4, but both UITextView nor > UITextField's text property takes an NSString. Does that mean these views are > off limits if I want to use an attributed string? The first problem is that if those controls d

Open Source Project and/or Framework for visual designs or models (Cocoa 10.6 - OS X)

2010-07-03 Thread Afshin
Hi Everyone, I am planning to build an evolutionary system (where user determines the fitness). In order to build such a system, I need to evolve stuff of course. I am looking for simple visual examples such as tuning/enhancing images, building 3d structures. I am doing this on Mac OSX 10.6. I ne

Where is the preset?

2010-07-03 Thread rramage
Please forgive this newbie question. When I create a new header & implementation file, it adds a header comment that says in part: // // Created by admin on 30/06/10. // Copyright __MyCompanyName__ 2010. All rights reserved. // Where and how do I change "admin" and "__MyCompanyName__" so I don

Re: Where is the preset?

2010-07-03 Thread unixo
You can change company name with this command (issue it in terminal): defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = "A Great Company";}' "admin" username is the current logged user, if I'm wrong regards unixo On Jul 4, 2010, at 1:51 AM, rramage wrote:

Re: Where is the preset?

2010-07-03 Thread Quincey Morris
On Jul 3, 2010, at 23:05, unixo wrote: > You can change company name with this command (issue it in terminal): > > defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions > '{"ORGANIZATIONNAME" = "A Great Company";}' > > "admin" username is the current logged user, if I'm wrong > > re