Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-09 Thread Dalmazio Brisinda
Alright, well, we may have to reevaluate an alternate approach to this instead of via a QuickLook generator. It seems there are other issues over an above sandboxing which are more problematic. Does anyone know if a version of the QuickLook framework with debugging symbols is available? I've al

Re: Finding process path from Cocoa?

2009-12-09 Thread Alastair Houghton
On 9 Dec 2009, at 00:14, Nick Zitzmann wrote: > On Dec 8, 2009, at 5:03 PM, Laurent Daudelin wrote: > >> Is there any way I can find what's the path of a given process running? A >> background process, which cannot be retrieved in [[NSWorkspace >> sharedWorkspace] launchedApplications]? > > Ye

Re: Finding process path from Cocoa?

2009-12-09 Thread jonat...@mugginsoft.com
On 9 Dec 2009, at 09:53, Alastair Houghton wrote: > > It is possible to get the path to your executable using the dyld API, but > before doing such a thing you need to be very clear as to why you need it and > what it is that you're going to do with it. It's very easy to end up with > major s

Re: Finding process path from Cocoa?

2009-12-09 Thread Alastair Houghton
On 9 Dec 2009, at 00:03, Laurent Daudelin wrote: > Is there any way I can find what's the path of a given process running? A > background process, which cannot be retrieved in [[NSWorkspace > sharedWorkspace] launchedApplications]? If we're talking about background processes, to get this kind o

Re: Finding process path from Cocoa?

2009-12-09 Thread Alastair Houghton
On 9 Dec 2009, at 10:02, jonat...@mugginsoft.com wrote: > On 9 Dec 2009, at 09:53, Alastair Houghton wrote: >> >> It is possible to get the path to your executable using the dyld API, but >> before doing such a thing you need to be very clear as to why you need it >> and what it is that you're

Re: Finding process path from Cocoa?

2009-12-09 Thread jonat...@mugginsoft.com
On 9 Dec 2009, at 09:53, Alastair Houghton wrote: >> >> Yes. ([[[NSProcessInfo processInfo] arguments] objectAtIndex:0]) > > No, no, no and thrice no. > > What that gives you is the content of argv[0], which *is not* (necessarily) > the path to your program. If you think it is, then to disabu

Re: Unable to write in InfoPlist.strings file from cpp

2009-12-09 Thread Uli Kusterer
On 09.12.2009, at 06:11, Parimal Das wrote: > Thanks a lot Greg. > Interpret as UTF8 solved the problem. Be careful, though: Some MacOS versions have a bug where .strings files had to be UTF16 to actually work. I don't think Apple has fixed that yet. Cheers, -- Uli Kusterer "The witnesses of T

Re: Finding process path from Cocoa?

2009-12-09 Thread jonat...@mugginsoft.com
On 9 Dec 2009, at 10:18, Alastair Houghton wrote: > On 9 Dec 2009, at 10:02, jonat...@mugginsoft.com wrote: > >> On 9 Dec 2009, at 09:53, Alastair Houghton wrote: >>> >>> It is possible to get the path to your executable using the dyld API, but >>> before doing such a thing you need to be very

Re: Binding and Observers

2009-12-09 Thread Gerriet M. Denkmann
On 9 Dec 2009, at 07:05, mmalc Crawford wrote: > > On Dec 8, 2009, at 2:17 am, Gerriet M. Denkmann wrote: > >> - (void)windowWillClose:(NSNotification *)notification >> { >> id f = [ ikView observationInfo ]; >> NSString *oi = [ f description ]; >> >> BOOL ok; >> NSStr

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-09 Thread lbland
On Dec 9, 2009, at 3:11 AM, Dalmazio Brisinda wrote: > Alright, well, we may have to reevaluate an alternate approach to this > instead of via a QuickLook generator. It seems there are other issues over an > above sandboxing which are more problematic. > > Does anyone know if a version of the

Re: Finding process path from Cocoa?

2009-12-09 Thread Alastair Houghton
On 9 Dec 2009, at 10:18, jonat...@mugginsoft.com wrote: > The docs for execl(3) do state the convention: > > The first argument, by convention, should point to the file name associated > with the file being executed. > > This being a Cocoa list we should expect that all conventions are being >

Re: Finding process path from Cocoa?

2009-12-09 Thread Alastair Houghton
On 9 Dec 2009, at 10:40, jonat...@mugginsoft.com wrote: > It could be argued that actively utilising any path to launch another process > is a security hole. > If your app loads an auxiliary executable from the main bundle then a user > with admin rights can intervene and modify the target. Ind

Additional action when a view's value changes (Cocoa Bindings)

2009-12-09 Thread Christian Ziegler
Hi all! I got a NSTextView and an NSStepper binded together, so that the textfield's and the stepper's values are in sync. This is very confinient, however I need additional things to be done whenever the value changes (basically just a method invocation). So far I've accomplished that by not u

Re: Additional action when a view's value changes (Cocoa Bindings)

2009-12-09 Thread Christian Ziegler
Sorry I got to correct myself, it's not Cocoa Bindings, but direct target/action. So I connected the takeIntegerValue action of both views to each other in contrast to connecting it to a controller. On 09.12.2009, at 14:26, Christian Ziegler wrote: > Hi all! > > I got a NSTextView and an NSSt

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-09 Thread Benjamin Rister
On Dec 8, 2009, at 4:35 PM, Greg Parker wrote: > Which OS version is this? 10.6.2 fixed a performance problem with garbage > collection and large KVO populations. If you still have trouble in 10.6.2+ > then you should file a bug report. On Dec 8, 2009, at 6:38 PM, Rob Keniger wrote: > Please s

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-09 Thread jonat...@mugginsoft.com
On 9 Dec 2009, at 13:58, Benjamin Rister wrote: > > Considering the other issues I’m having with it, I suspect I’m headed down > the same path. For the record, this will be three for three times I’ve tried > to use NSTreeController in one of our apps and have been unable to do so. > I seem to

UINavigationBar, setTintColor: and UIColor colorWithPatternImage:

2009-12-09 Thread Duccio
Related to "[iPhone] UINavigationController and UINavigationBar". - Instantiating a color using colorWithPatternImage: UIColor *color = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.png"]]; and using it to set

Re: CAShapeLayer and touches?

2009-12-09 Thread Eric E. Dolecki
Hmmm - I just tried this and I am getting this warning: UITouch *touch = [[event allTouches] anyObject]; if( [self.view.layer hitTest:[touch locationInView:self]] == pointerLayer) { NSLog(@"pointer touched"); } Incompatible Objective-C types 'struct RadioViewController *", expected 'struct UIVie

Re: UINavigationBar, setTintColor: and UIColor colorWithPatternImage:

2009-12-09 Thread Luke the Hiesterman
Do you really expect that a patterned image would work well in this case? A tint obviously gets applied to the color that is set to create the actual background, and remember that the background of the bar gets mirrored in any buttons on the bar, which seems destined to look awkward if we'r

launchApplication: giving error -10827 ?

2009-12-09 Thread Uli Kusterer
I'm trying to debug a few changes in Sparkle I made, and I'm having a problem where, sometimes at least, I get an error message when Sparkle's relaunch tool tries to start up the newly installed application: [[NSWorkspace sharedWorkspace] openFile: appPath]; When this line is hit, I get

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-09 Thread Alex Kac
I haven’t tried this, but could the OP get what he wants by setting a tint color of clearColor and then set a background pattern image on the window itself? On Dec 8, 2009, at 5:57 PM, Luke the Hiesterman wrote: > > On Dec 8, 2009, at 3:51 PM, Mike Abdullah wrote: > >> Other alternatives: >>

Re: Finding process path from Cocoa?

2009-12-09 Thread Todd Heberlein
On Dec 9, 2009, at 4:23 AM, Alastair Houghton wrote: > Specifically, a potential attacker will deliberately not follow this > convention. The Security Server used to get the information for the program > name in this manner, which created quite an interesting vulnerability since > you could g

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-09 Thread Luke the Hiesterman
I hinted at that option in the other thread the OP started by mentioning that the bar can be translucent. I haven't tried it either, and I'm not sure what happens when clearColor gets tinted. The general strategy of going with a translucent bar seems like it might bear fruit in this case, t

Re: Additional action when a view's value changes (Cocoa Bindings)

2009-12-09 Thread Quincey Morris
On Dec 9, 2009, at 05:47, Christian Ziegler wrote: > Sorry I got to correct myself, it's not Cocoa Bindings, but direct > target/action. So I connected the takeIntegerValue action of both views to > each other in contrast to connecting it to a controller. > > > On 09.12.2009, at 14:26, Christi

Re: CAShapeLayer and touches?

2009-12-09 Thread David Duncan
On Dec 9, 2009, at 6:47 AM, Eric E. Dolecki wrote: > Incompatible Objective-C types 'struct RadioViewController *", expected > 'struct UIView *' when passing argument 1 of 'locationInView' from distinct > Objective-C type. I had assumed 'self' was an instance of UIView. I was wrong. Thats what

Re: Finding process path from Cocoa?

2009-12-09 Thread James Walker
Laurent Daudelin wrote: Is there any way I can find what's the path of a given process running? A background process, which cannot be retrieved in [[NSWorkspace sharedWorkspace] launchedApplications]? What kind of a process? If it's a background-only *application*, you can use the Process Ma

Re: Finding process path from Cocoa?

2009-12-09 Thread Laurent Daudelin
On Dec 8, 2009, at 16:14, Nick Zitzmann wrote: > > On Dec 8, 2009, at 5:03 PM, Laurent Daudelin wrote: > >> Is there any way I can find what's the path of a given process running? A >> background process, which cannot be retrieved in [[NSWorkspace >> sharedWorkspace] launchedApplications]? >

Re: Finding process path from Cocoa?

2009-12-09 Thread Sean McBride
On 12/9/09 10:33 AM, Laurent Daudelin said: >That's good if you want to know about your own process but what I was >looking for was to check another process. Since I had to support 10.5, >NSRunningApplication was out of question. NSRunningApplication is basically a replacement for the Process Man

Question about touchesBegan

2009-12-09 Thread Eric E. Dolecki
I have a main view that uses touchesBegan. I call up and display a subView on top of the main view, and that subView has it's own touchesBegan. The subView obstructs the touchesBegan in the main view. Is this expected? -- http://ericd.net Interactive design and development

Re: Finding process path from Cocoa?

2009-12-09 Thread Dave DeLong
I apologize if this has already come up, but what about running `ps x | grep 'ProcessName'`, and extracting the executable path that way? Dave On Dec 9, 2009, at 11:33 AM, Laurent Daudelin wrote: > Kinda odd to use AppleScript for that but that was the quickest way I found. smime.p7s Descrip

Re: Question about touchesBegan

2009-12-09 Thread Alexander Spohr
Am 09.12.2009 um 20:32 schrieb Eric E. Dolecki: > I have a main view that uses touchesBegan. I call up and display a subView > on top of the main view, and that subView has it's own touchesBegan. > > The subView obstructs the touchesBegan in the main view. Is this expected? Yes. Otherwise no s

Order of [... directoryContentsAtPath:...]

2009-12-09 Thread David Blanton
NSArray *array = [[NSFileManager defaultManager] directoryContentsAtPath:fullPath]]; Will array objects 0 thru n be in dictionary order? This seems to be the case but not always. Should one sort array in an ascending manner? Every place I run my code I always see array in diction

Re: Finding process path from Cocoa?

2009-12-09 Thread Laurent Daudelin
On Dec 9, 2009, at 11:51, Dave DeLong wrote: > I apologize if this has already come up, but what about running `ps x | grep > 'ProcessName'`, and extracting the executable path that way? > > Dave > > On Dec 9, 2009, at 11:33 AM, Laurent Daudelin wrote: > >> Kinda odd to use AppleScript for tha

Re: Order of [... directoryContentsAtPath:...]

2009-12-09 Thread Quincey Morris
On Dec 9, 2009, at 13:38, David Blanton wrote: > Will array objects 0 thru n be in dictionary order? This seems to be the > case but not always. Should one sort array in an ascending > manner? No, there's no API contract that specifies what order they'll be returned in. It may in fact be fi

Re: Question about touchesBegan

2009-12-09 Thread Jack Carbaugh
So in this case, would the SUBview want to send the SUPERview the touchesbegan event ? On Dec 9, 2009, at 4:10 PM, Alexander Spohr wrote: Am 09.12.2009 um 20:32 schrieb Eric E. Dolecki: I have a main view that uses touchesBegan. I call up and display a subView on top of the main view, an

Re: Finding process path from Cocoa?

2009-12-09 Thread Laurent Daudelin
On Dec 9, 2009, at 10:48, Sean McBride wrote: > On 12/9/09 10:33 AM, Laurent Daudelin said: > >> That's good if you want to know about your own process but what I was >> looking for was to check another process. Since I had to support 10.5, >> NSRunningApplication was out of question. > > NSRunn

Re: Question about touchesBegan

2009-12-09 Thread glenn andreas
On Dec 9, 2009, at 4:19 PM, Jack Carbaugh wrote: > So in this case, would the SUBview want to send the SUPERview the > touchesbegan event ? > >From the documentation (iPhone Application Programming Guide > Event Handling >> Touch Events > Handling Multi-Touch Events > Forwarding Touch Events)

Re: Finding process path from Cocoa?

2009-12-09 Thread Nick Zitzmann
On Dec 9, 2009, at 3:49 PM, Laurent Daudelin wrote: > I guess that with Carbon not being ported to 64bits, NSRunningApplication was > needed. It just makes life a little harder if you have to support both 10.5 > (which doesn't have NSRunningApplication but has Process Manager) and 10.6 > (whic

Re: Finding process path from Cocoa?

2009-12-09 Thread Eric Schlegel
On Dec 9, 2009, at 2:49 PM, Laurent Daudelin wrote: > 10.6 (which has NSRunningApplication but doesn't support Process Manager in > 64bits)... Actually, the Process Manager is supported for 64-bit apps. -eric ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Finding process path from Cocoa?

2009-12-09 Thread Laurent Daudelin
On Dec 9, 2009, at 14:55, Nick Zitzmann wrote: > > On Dec 9, 2009, at 3:49 PM, Laurent Daudelin wrote: > >> I guess that with Carbon not being ported to 64bits, NSRunningApplication >> was needed. It just makes life a little harder if you have to support both >> 10.5 (which doesn't have NSRunn

Re: Finding process path from Cocoa?

2009-12-09 Thread Nick Zitzmann
On Dec 9, 2009, at 4:11 PM, Laurent Daudelin wrote: > FSSpec is not supported but FSRef still is? I just checked the documentation > but it's not clear that FSSpec is not ported (or deprecated?). Does > deprecated means it possibly won't be ported to 64-bit? I think the FSSpec structure is act

Re: Additional action when a view's value changes (Cocoa Bindings)

2009-12-09 Thread mmalc Crawford
On Dec 9, 2009, at 5:47 am, Christian Ziegler wrote: > Sorry I got to correct myself, it's not Cocoa Bindings, but direct > target/action. So I connected the takeIntegerValue action of both views to > each other in contrast to connecting it to a controller. > Don't do that. Both should invoke

Re: Question about touchesBegan

2009-12-09 Thread Eric E. Dolecki
Is there a way to define the touchesBegan in an added sub view to be constricted to a certain area and not allObjects? Thus leaving a "hole" to allow touches to be fired on the view below? On Wed, Dec 9, 2009 at 5:53 PM, glenn andreas wrote: > > On Dec 9, 2009, at 4:19 PM, Jack Carbaugh wrote: >

Re: Question about touchesBegan

2009-12-09 Thread Henry McGilton (Boulevardier)
On Dec 9, 2009, at 5:58 PM, Eric E. Dolecki wrote: > Is there a way to define the touchesBegan in an added sub view to > be constricted to a certain area and not allObjects? Thus leaving a "hole" > to allow touches to be fired on the view below? If I interpret your question correctly, you want t

Re: Question about touchesBegan

2009-12-09 Thread Eric E. Dolecki
Well - I wonder if it's possible to enable touches in a sub view but not for the entire view - just part of it. I have a view with buttons in it. I call up a sub view that requires touches for swiping... I want the buttons in the view below to still register touch events for that entire view. On

Leopard for development / testing.

2009-12-09 Thread Dan Ribe
Hi All, I want to get a copy of Leopard for development/testing purpose. Can anyone please let me know. - Is there anyway to download it from apple's site ? - Does apple provides Leopard copy for Development/Testing for free or I have to pay for that ? - If apple provides free copy of Leopard for

[iPhone] Is there no return or dismiss key if my UITextField.keyboardType = UIKeyboardTypeNumberPad

2009-12-09 Thread Paul Archibald
It seems as though the UITextField/View classes do not allow a return or done key when keyboardType is a UIKeyboardTypeNumberPad. Am I missing something, or is this a deliberate design? This seems odd to me and kind of a drag since I have several text and numeric controls in my view and I w

Re: [iPhone] Is there no return or dismiss key if my UITextField.keyboardType = UIKeyboardTypeNumberPad

2009-12-09 Thread Dave DeLong
You could have the background of the screen respond to touch events, so that when the background receives a touch, it forces the first responder to resign that status, thereby causing the keyboard to disappear. Dave On Dec 9, 2009, at 9:38 PM, Paul Archibald wrote: > Is that the only solution?

NSCell's mouse tracking method never called

2009-12-09 Thread Martin Cote
Hello, I'm trying to track the mouse in my custom NSCell subclass, which is used to display the content of a NSTableView. For that matter, I override the following method: - (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView *)controlView untilMouseUp:(BOOL)flag; The p

Re: Leopard for development / testing.

2009-12-09 Thread Kiel Gillard
On 10/12/2009, at 3:37 PM, Dan Ribe wrote: > Hi All, > > I want to get a copy of Leopard for development/testing purpose. Can anyone > please let me know. > > - Is there anyway to download it from apple's site ? Yes I know they offer Snow L

Re: Leopard for development / testing.

2009-12-09 Thread Dan Ribe
I already have snow leopard & developer tools for it. So basically I can develop application using it on snow leopard for both 10.5 & 10.6. I am looking for a copy of Leopard so that I can test my software on Leopard as well. thanks On Thu, Dec 10, 2009 at 10:18 AM, Evadne Wu wrote: > Hi Dan,

Re: NSCell's mouse tracking method never called

2009-12-09 Thread Graham Cox
On 10/12/2009, at 3:50 PM, Martin Cote wrote: > I'm trying to track the mouse in my custom NSCell subclass, which is > used to display the content of a NSTableView. For that matter, I > override the following method: > > - (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame > ofView:(

Re: Leopard for development / testing.

2009-12-09 Thread Rob Keniger
On 10/12/2009, at 2:58 PM, Dan Ribe wrote: > I already have snow leopard & developer tools for it. So basically I can > develop application using it on snow leopard for both 10.5 & 10.6. > > I am looking for a copy of Leopard so that I can test my software on Leopard > as well. thanks This que

Re: Leopard for development / testing.

2009-12-09 Thread Nick Zitzmann
On Dec 9, 2009, at 9:58 PM, Dan Ribe wrote: > I am looking for a copy of Leopard so that I can test my software on Leopard > as well. Did you get Snow Leopard as part of a new computer? If so, then even if you acquire Leopard, you might not be able to use it. With a very small handful of excep

Problem with Set/Get volume of input device with single channel

2009-12-09 Thread Symadept
Hi, I am trying to Set/Get Volume level of Input device which has only single channel but no master channel, then it fails to retrieve the kAudioDevicePropertyPreferredChannelsForStereo and intermittently kAudioDevicePropertyVolumeScalar for each channel. But this works well for Output device. So

Re: Question about touchesBegan

2009-12-09 Thread Alexander Spohr
Am 10.12.2009 um 04:34 schrieb Eric E. Dolecki: > Well - I wonder if it's possible to enable touches in a sub view but not for > the entire view - just part of it. > > I have a view with buttons in it. I call up a sub view that requires touches > for swiping... I want the buttons in the view bel

Re: Question about touchesBegan

2009-12-09 Thread Alexander Spohr
Um, have to follow up to myself... Am 10.12.2009 um 08:02 schrieb Alexander Spohr: > Am 10.12.2009 um 04:34 schrieb Eric E. Dolecki: > >> Well - I wonder if it's possible to enable touches in a sub view but not for >> the entire view - just part of it. >> >> I have a view with buttons in it. I