Re: How to terminate an NSTask whenever my app terminates?

2015-09-01 Thread Bavarious
> On Aug 31, 2015, at 20:32, Jens Alfke wrote: > > (I know this has come up here before, but I can’t get the right combination > of search terms to find an answer…) > > I’m writing a little GUI wrapper app around a command-line-based server. It > uses NSTask to launch the

Re: Tech update avoiding legacy code

2015-08-14 Thread Bavarious
On Aug 14, 2015, at 03:01, Jens Alfke j...@mooseyard.com wrote: FYI, there’s a 3rd party library that patches in ARC weak-reference support for 10.6. (I don’t remember what it’s called or where it is, but I’m sure someone here does.) PLWeakCompatibility by Plausible Labs?

Re: Unsigned Modulo

2015-08-12 Thread Bavarious
On Aug 12, 2015, at 07:12, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: OS X 10.10.4, Xcode 7 beta 3 This code produces some (for me) unexpected results: NSUInteger unsignedSize = 3; NSInteger signedSize = 3; for ( NSInteger rawValue = -6; rawValue 5; rawValue++ ) {

Re: Unsigned Modulo

2015-08-12 Thread Bavarious
On Aug 12, 2015, at 07:12, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: OS X 10.10.4, Xcode 7 beta 3 This code produces some (for me) unexpected results: NSUInteger unsignedSize = 3; NSInteger signedSize = 3; for ( NSInteger rawValue = -6; rawValue 5; rawValue++ ) {

Re: NSRunningApplication executableURL issue in Swift

2015-03-10 Thread Bavarious
On Mar 10, 2015, at 21:17, Roland King r...@rols.org wrote: On 11 Mar 2015, at 00:24, Bill Cheeseman wjcheese...@gmail.com wrote: I'm using Xcode 6.2 and Swift 1.1. 1. The following statement reports the error 'NSURL?' does not have a member named 'path' even though executableURL

Re: Document based architecture

2015-03-09 Thread Bavarious
On Mar 9, 2015, at 04:53, Roland King r...@rols.org wrote: On 9 Mar 2015, at 15:38, Patrick J. Collins patr...@collinatorstudios.com wrote: Hi everyone, It was recently suggested to me that my app should be a document based architecture design since I want File - Open - select file

Re: NSUserDefaults not sticking

2014-09-11 Thread Bavarious
Em 11/09/2014, à(s) 01:07, Rick C. rickcort...@gmail.com escreveu: This is all very interesting and shows that there are issues out there, but back to my original issue if I’m writing and reading via NSUserDefaults and its not returning the expected values what else could be the trouble?

Re: Converting to Swift

2014-08-11 Thread Bavarious
On 11 Aug 2014, at 05:35, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I am trying to convert: NSString * helperName = @de.mdenkmann.Xpc-Exchange”; CFDictionaryRef diref = SMJobCopyDictionary( kSMDomainSystemLaunchd, (__bridge CFStringRef)helperName ); NSDictionary

Re: Converting to Swift

2014-08-11 Thread Bavarious
On 11 Aug 2014, at 05:53, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 11 Aug 2014, at 15:43, Bavarious bavari...@icloud.com wrote: On 11 Aug 2014, at 05:35, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I am trying to convert: NSString * helperName = @de.mdenkmann.Xpc

Re: [Xcode 6 beta3][Swift] NSDocument addWindowController failing inexplicably

2014-07-18 Thread Bavarious
On 18 Jul 2014, at 13:10, Philip Shaw wahspil...@gmail.com wrote: I'm writing a document-based app in Swift, with a custom view controller class, and thus had to implement my own version of makeWindowControllers. However, for some reason the call to self.addWindowControllers does nothing

Re: [NSDictionary objectForKey] crash on x64

2014-07-11 Thread Bavarious
On 11 Jul 2014, at 09:56, Cosmin Apreutesei cosmin.apreute...@gmail.com wrote: Hi, I have a strange problem. I am using C and the objc runtime on OSX 10.9.3 to get a value from a NSDictionary. The objectForKey method returns an invalid pointer on x64 (not NULL, but the same address

Re: NSWindowController and designated initializer rules

2014-06-23 Thread Bavarious
On 23 Jun 2014, at 14:38, Sean McBride s...@rogue-research.com wrote: Hi all, The Obj-C designated initializer rules say that if a subclass creates a new designated initializer that its implementation must call (one of) the superclass' designated initializer. The docs for

Re: Global Shortcuts

2011-04-16 Thread Bavarious
On 16 Apr 2011, at 13:02, Eric Schlegel wrote: On Apr 16, 2011, at 2:59 AM, Florian Pilz wrote: However the Carbon API for global shortcuts (RegisterEventHotKey) is marked as 'Legacy'. I am not sure if thats the same as 'deprecated' in Apple terms It's not. So my question is: Is the

Re: How can I make a window just like the Anxiety App?

2011-02-21 Thread Bavarious
On 21/02/2011, at 02:53, Graham Cox wrote: While I have wholeheartedly recommended BWToolKit in the past, a word of warning: If you use it as is your app will fail App Store approval due to use of undocumented/private API. I've contacted Brandon about this but haven't heard back. You