Re: Getting the Version Number from an NSRunningApplication?

2016-05-25 Thread Daniel Höpfl
Hi, On 2016-05-25 10:56, Dave wrote: Hi, How can I get the version number of an Application from an NSRunningApplication object? I tried the following, the BundleID looks ok but “bundleWithIdentifier:” returns nil? +(NSInteger) getAppVersionNumberWithRunningApp:(NSRunningApplication*)

Re: static analyzers says I'm leaking, I _think_ I'm not

2015-05-08 Thread Daniel Höpfl
On 07.05.2015 20:16, Charles Srstka wrote: On May 7, 2015, at 6:44 AM, Daniel Höpfl ap...@hoepfl.de mailto:ap...@hoepfl.de wrote: I'd change the code as follows: // init self.cycler = [[[GridCycler alloc] initWithGrid: self] autorelease]; // alternative init, if you want to bypass

Re: static analyzers says I'm leaking, I _think_ I'm not

2015-05-07 Thread Daniel Höpfl
Hi, Expanding the potential leak message yields: Static analyser is right, there is a potential leak. Based on what Aaron said, assume the following usage of your class: LifeGrid *grid = [[LifeGrid alloc] init]; // GridCycler is allocated (retain count: +1) // GridCycler is retained by

Re: Auto layout and re-sizing subviews.

2014-05-06 Thread Daniel Höpfl
Hi, On 06.05.2014 23:32, lorenzo wrote: I posted this on SO, but got no answers, so I'm trying here and mabe I can get some help.: I have a window into which I horizontally add two subviews. Into each subview, I place a variable number of subviews made up of a vertical slider, a text field

Re: Arc: Switch case is in protected scope

2013-10-22 Thread Daniel Höpfl
Hi, On 2013-10-22 09:41, Gerriet M. Denkmann wrote: Converting to Arc (Xcode 5.0). This works fine without Arc (regardless whether TRIGGER_ERROR is defined or not): NSMutableString *mus = [ NSMutableString string ]; NSString *word = @abc; switch( self.colourType ) { case colour_link:

Re: Arc: Switch case is in protected scope

2013-10-22 Thread Daniel Höpfl
Hi, On 2013-10-22 10:06, ChanMaxthon wrote: Compiler issue. All cases in a switch statement shares a same scope, and ARC works by inserting code into beginning and end of scopes. switch() statement jumps around, making code path very unpredictable, confusing ARC. It is a compiler issue. But

Re: Arc: Switch case is in protected scope

2013-10-22 Thread Daniel Höpfl
Hi, On 2013-10-22 17:50, Sean McBride wrote: On Tue, 22 Oct 2013 10:31:01 +0200, Daniel Höpfl said: Was the old (non-arc) code faulty (but the compiler did not notice this)? Why is the arc-version (with TRIGGER_ERROR defined) wrong? It is wrong in the non-arc world, too. (ISO/IEC 9899:2011

Re: How test whether Mac app is running in Xcode?

2013-10-15 Thread Daniel Höpfl
On 2013-10-15 13:12, Bill Cheeseman wrote: Is there any way to test whether an application is running in Xcode or some other compiler/debugger, and not as a free-standing application? And then to get the name of the compiler/debugger? I'm currently testing #ifdef DEBUG and simply assuming that

Re: UIPageViewController page index woes

2013-09-25 Thread Daniel Höpfl
Hi, On 25.09.2013 03:25, Rick Mann wrote: I've implemented the two page index methods in the dataSource, but I'm not getting a page indicator. Where does it appear, near the bottom? I see my methods are being called. I also don't know how to determine the current page index.

Re: Analyser reports memory leak… where?

2013-09-13 Thread Daniel Höpfl
On 2013-09-12 17:52, Graham Cox wrote: I believe it does. I think your reading of the getter convention may be incorrect. If you can point to explicit documentation that states that the returned object must belong to an autorelease pool, I'll stand corrected, but that would be the first time

Re: Analyser reports memory leak… where?

2013-09-12 Thread Daniel Höpfl
On 2013-09-12 17:00, Bill Cheeseman wrote: -eventTypes: is, in fact, a classic new method, though a bit oddly written. All in the one method (by calls to utility methods), it creates a new object with a refcount of 1 by calling +alloc indirectly, increases its refcount by 1 more by calling

Re: developer.apple.com under maintenance for a few days now?

2013-07-23 Thread Daniel Höpfl
Nope, not all got it. I did get it for one of my Apple IDs but did not get it for the other. (No, it didn't end in the SPAM folder, I checked the server logs,) On 23.07.2013 07:51, Jean Suisse wrote: I believe we all got it. Personally, I'd rather like they take as much time as needed on this

Re: developer.apple.com under maintenance for a few days now?

2013-07-23 Thread Daniel Höpfl
Daniel Höpfl ap...@hoepfl.de: Nope, not all got it. I did get it for one of my Apple IDs but did not get it for the other. (No, it didn't end in the SPAM folder, I checked the server logs,) On 23.07.2013 07:51, Jean Suisse wrote: I believe we all got it. Personally, I'd rather like they take

Re: NSString and file system Re: AppleScript in Sandboxed App

2013-02-03 Thread Daniel Höpfl
Hello, On Wed, 16 Jan 2013 17:12:15 +, jonat...@mugginsoft.com wrote: On 16 Jan 2013, at 15:50, Fritz Anderson fri...@manoverboard.org wrote: On 16 Jan 2013, at 3:52 AM, jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: Py_SetProgramName((char *)[[scriptRunner launchPath]