Re: Test for launched from (Apple)Script?

2010-11-10 Thread vinai
lution is very ugly, but entirely functional for my needs. After I acquire data, I can pull up a sample via the GUI, see how the processing works, and can tweak parameters there and get direct feedback. I can then put those parameters into a shell script and drive the program in batch mode. I

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-25 Thread vinai
--- On Thu, 2/25/10, Ariel Feinerman wrote: > ... > > There is neither techinque for setting window`s frame > itself, nor message for setting content view aspect. Ariel, Does the method setContentAspectRatio for NSWindow not do what you need ?

Re: Keeping NSView square

2009-11-18 Thread vinai
width and height of your image), and has been anchored to an image view within the application's main window (myWindow). Hope this helps, or at least points you in the right direction. cheers vinai --- On Wed, 11/18/09, Henri Häkkinen wrote: > From: Henri Häkkinen > Subject: Keepi

Re: Shutdown/Restart computer

2009-09-14 Thread vinai
NIX and UNIX-type systems. vinai --- On Mon, 9/14/09, PCWiz wrote: > How would I shut down and restart the computer using Objective-C code? > > Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: How to create an interface without interface builder

2009-08-20 Thread vinai
Check: http://lapcatsoftware.com/blog/?s=%22working+without+a+nib for tips on getting around using NIBs and XIBs. --- On Thu, 8/20/09, Jonathan Chacón wrote: > From: Jonathan Chacón > Subject: How to create an interface without interface builder > To: "Apple Cocoa Develop" > Date: Thursd

Re: Cocoa Frontend to SDL App

2009-07-10 Thread vinai
so I couldn't tell you how easy or difficult it would be to add a Cocoa view to an already existing Open GL program. cheers vinai --- On Fri, 7/10/09, Anthony Smith wrote: > Thanks for the input. SDL is actually a simplified interface to OpenGL > so I'm wanting to integrate an

Re: Cocoa Frontend to SDL App

2009-07-10 Thread vinai
Doesn't ffmpegX and handbrake already do this ? I think both are GPL'ed and wrap around ffmpeg. cheers vinai --- On Fri, 7/10/09, Anthony Smith wrote: > I'm wanting to integrate an already made SDL app executed through the > command line into a Cocoa app within a cust

Re: view drawing differences between Tiger and Leopard ?

2009-06-15 Thread vinai
Hi All, This did not seem to help the issue with my software running under Tiger. If I have to provide back compatibility support, I'll look into another view type and see if that works ... cheers vinai --- On Fri, 6/12/09, vinai wrote: >> This was a problem with NSImageView o

Re: view drawing differences between Tiger and Leopard ?

2009-06-12 Thread vinai
Dave, I'll give it a try and report back to the list if that is indeed what's going on. Thanks for the tip. cheers vinai --- On Fri, 6/12/09, Dave Fernandes wrote: > This was a problem with NSImageView on Tiger. My workaround is to call > [imageView setImage:nil] and

view drawing differences between Tiger and Leopard ?

2009-06-12 Thread vinai
ems are Intel Core 2 machines, with all of the system updates applied. Thanks everyone. cheers vinai ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: App does not start on a different machine

2009-06-10 Thread vinai
line. IIRC, this is equivalent to running the program from XCode's "Build and Run" option, where you get a logging terminal. So if nothing shows up there, I am not sure how useful this tip is. But more info would be helpful ... vinai ___

Re: No Title Bar on NSPanel

2009-06-04 Thread vinai
Sorry, My error - I thought you were looking for a way to just have a window with an empty title bar (I thought the resizing capability you mentioned was in the title bar). I hadn't realized you wanted a window completely without a bar at all ... vinai --- On Thu, 6/4/09, John Ku

Re: No Title Bar on NSPanel

2009-06-04 Thread vinai
If you force your panel's "setTitle" method to an empty NSString, does that get you a panel with a bar without a title ? vinai --- On Thu, 6/4/09, John Ku wrote: > From: John Ku > Subject: Re: No Title Bar on NSPanel > To: "Gregory Weston" > Cc: cocoa

Re: Image (or view ?) not scaling with window

2009-06-03 Thread vinai
--- On Wed, 6/3/09, Keary Suska wrote: > From: Keary Suska > Subject: Re: Image (or view ?) not scaling with window > To: "Cocoa-Dev (Apple)" > Date: Wednesday, June 3, 2009, 9:50 AM > > On Jun 3, 2009, at 7:45 AM, vinai wrote: > >> I've run int

Image (or view ?) not scaling with window

2009-06-03 Thread vinai
de for the GUI elements of that window is below. Is there a flag I am missing somewhere in this, or do I need to handle view and image resize updates in another routine ? Thanks all. vinai -- NSRect tempRect = NSMakeRect (

Re: what am I missing with NSString ?

2009-05-26 Thread vinai
I have now encountered other problems further downstream in my pipeline, but c'est la vie ... Again, thanks all - very, very much! cheers vinai ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

what am I missing with NSString ?

2009-05-26 Thread vinai
2009-05-26 09:18:41.931 REMI[19710:807] Logging the file name variable 2009-05-26 09:18:41.932 REMI[19710:807] Logging the called file path object directly 2009-05-26 09:18:41.932 REMI[19710:807] /Users/vinai/Desktop/rawTestData/P04608.7 rawFileName is declared to be an NSString * in my object

Re: Converting NSString to C++ std::string

2009-05-08 Thread vinai
SString cStringUsingEncoding: NSASCIIStringEncoding] where "thisOptionNSString" is of NSString * type, and has already been properly initialized and allocated. vinai ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: different application behaviour under different startup modes ...

2009-05-07 Thread vinai
--- On Thu, 5/7/09, I. Savant wrote: > From: I. Savant > To: "vinai" > Cc: Cocoa-dev@lists.apple.com > Date: Thursday, May 7, 2009, 9:59 AM > > On Thu, May 7, 2009 at 10:53 AM, vinai wrote: > >> However, when I try to launch the application from >

different application behaviour under different startup modes ...

2009-05-07 Thread vinai
Hi Folks, I am just starting up with Cocoa, and feel like I'm making a very rookie mistake, but I can't track down what I've missed I am coding up an application to process different types of raw data. On application startup, I have a window (of NSPanel lineage) open, with 2 NSPopupButt

Re: code for drawing an NSTextField to a panel window ...

2009-03-13 Thread vinai
ed by fairly low level C routines and libraries Thanks again folks. I'll pick up the Hillegass book and hopefully be back with more appropriate questions ;-) cheers vinai --- On Thu, 3/12/09, Sidney San Martín wrote: > Remember that Interface Builder does not generate code!

Re: code for drawing an NSTextField to a panel window ...

2009-03-12 Thread vinai
gt; Subject: Re: code for drawing an NSTextField to a panel window ... > To: for_use...@yahoo.com > Cc: Cocoa-dev@lists.apple.com > Date: Thursday, March 12, 2009, 12:00 PM > On Wed, Mar 11, 2009 at 12:11 PM, vinai > wrote: > > > where rawButtonRect is an NSRect, contectR

code for drawing an NSTextField to a panel window ...

2009-03-12 Thread vinai
ins plain, and I am at a loss as to what I missed ... Would appreciate any pointers ... thanks much vinai ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the