Re: NSLog on releasebuild

2008-07-23 Thread Dmitri Goutnik
On Jul 23, 2008, at 6:48 PM, Mike wrote: Hello, During development and debug I typically use tons of NSLog()- messages to get info what's happening. I don't wish to include these messages to release-build so what is common/recommended way to get rid of them? Should I comment them all out

Re: Being notified of changes to a file

2008-07-21 Thread Dmitri Goutnik
On Jul 20, 2008, at 8:37 PM, Yann Disser wrote: Hi everyone. I am trying to execute a ruby script from within a Cocoa application. I want to use NSTask (any better ideas?). My scripts outputs its progress by printing single lines on standard out containing percentages (e.g. 15%). How can

Re: newbie question: NSURLConnection delegation and method instance

2008-07-20 Thread Dmitri Goutnik
On Jul 20, 2008, at 11:43 PM, JB Ashton wrote: Hi all, I'm struggling with receivedData is declared as a method instance elsewhere in this explanation of NSURLConnection delegation: http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html

Re: Flip animation like dashboard widgets

2008-07-18 Thread Dmitri Goutnik
On Jul 18, 2008, at 11:42 AM, chaitanya pandit wrote: Is there any way to do flip animation like the one with dashboard widgets when u click the i to change the settings for the widget. Can it be done for NSView? Take a look at Lemur Flip by Mike Lee. - Dmitri

Re: How to programmatically open an NSComboBox's list?

2008-07-17 Thread Dmitri Goutnik
Hello Jens, On Jul 17, 2008, at 8:26 PM, Jens Alfke wrote: I have an NSComboBox, and I want to automatically pop open the list, without the user having to click the button. But I can't find anything in the API of either the control or the cell to do this. Did I overlook something? I

NSTextField labels and URLs

2008-07-14 Thread Dmitri Goutnik
Hi, I'm almost positive I've seen this asked here a few weeks back, but search turned up nothing so here goes... I have About panel with copyright label (NSTextField) that have URL in it. Label is set to allow rich text and be selectable, copyright string is loaded from Credits.rtf and

Re: CoreAnimation and Filters

2008-05-29 Thread Dmitri Goutnik
On May 29, 2008, at 11:32 PM, Joachim Deelen wrote: The Animation of the Filter is working fine. The ZoomBlur gets animated from 20.0 to 0.0 in 1.8 seconds. But as soon as the animation has finished, the Value for the filter instantly drops back to 20.0. I've tried different fillModes but

Re: NSImage display quality and zooming

2008-05-28 Thread Dmitri Goutnik
On May 28, 2008, at 4:37 AM, also wrote: I've created a custom NSView that displays an image and allows the user to zoom in and out. The view works in general, but the quality of the image displayed is not what I expect. When I zoom in even slightly on a high resolution image (300 dpi,

Re: How to Delay, Wait, Pause...

2008-05-25 Thread Dmitri Goutnik
Sorry, forgot to hit Reply All.. On May 25, 2008, at 10:45 AM, Steve Steinitz wrote: Hello, This is hard to google for because they are such common words: how do I delay, wait, pause for a tenth of a second? I don't want to use NSTimer because I just want to resume where I left off. I

Re: Synching Animations Across CALayers

2008-05-23 Thread Dmitri Goutnik
On May 23, 2008, at 11:18 AM, Bridger Maxwell wrote: Perhaps there is a way to see how far along the animation is for a given layer, and be able to make another layer synch to the same time. Surely this has to be possible. Haven't tried this myself but it should be possible to get