Re: Send msg to object by nameed NSString;

2014-06-19 Thread Graham Cox
On 19 Jun 2014, at 3:30 pm, Trygve Inda cocoa...@xericdesign.com wrote: Should I be doing: self.myProperty = [coder decodeObjectForKey:kMyProperty]; (isn't that effectively the same as a getter/setter)? Yep, it's the same, so you will gain nothing there. Guessing it would be better

supportedInterfaceOrientations in Swift

2014-06-19 Thread Roland King
I'm overriding supportedInterfaceOrientations in my view controller because I want it to return Portrait + PortraitUpsideDown, and on iPhone PortraitUpsideDown is not included in the standard return. The Objective-C method would look something like this

Re: iOS app restarting from screen one. Why?

2014-06-19 Thread Jonathan Hull
My guess would be that Jens is correct. Your app is likely being killed by the system while it is in the background. I tend to run a lot of apps at once and switch between them often, so I run into this all the time. When your app is backgrounded, you should save your UI state and restore it

Re: Send msg to object by nameed NSString;

2014-06-19 Thread Trygve Inda
On 19 Jun 2014, at 3:30 pm, Trygve Inda cocoa...@xericdesign.com wrote: Should I be doing: self.myProperty = [coder decodeObjectForKey:kMyProperty]; (isn't that effectively the same as a getter/setter)? Yep, it's the same, so you will gain nothing there. Guessing it would be

Re: iOS app restarting from screen one. Why?

2014-06-19 Thread Alex Kac
Recently I hit the same issue. It was working just fine one day, and then the next - every app from Mail to Safari to 3rd party apps - all were losing their UI state when I’d switch between them. On an iPhone 5s. Reboot fixed it for now. On Jun 19, 2014, at 5:19 AM, Jonathan Hull jh...@gbis.com

Re: iOS app restarting from screen one. Why?

2014-06-19 Thread Alex Zavatone
Yeah, I just tried rebooting the device and while I'm running the app on the device through Xcode, the app definitely quits when the Personal Hotspot is toggled on or off, as Xcode states No Debug Session. There is no message thrown in the console and the applicationWillTerminate: method isn't

Re: Bindings setup with NSCollectionViews

2014-06-19 Thread Willeke
Bind the Selection Indexes of the master collection view to selectionIndexes of the BoardArrayController. I would bind the Contents of the detail collection view to arrangedObjects of the ListArrayController. Willeke Op 18 jun 2014, om 03:40 heeft Hajder Rabiee het volgende geschreven: Hi

Re: iOS app restarting from screen one. Why?

2014-06-19 Thread Quincey Morris
On Jun 19, 2014, at 08:24 , Alex Zavatone z...@mac.com wrote: There is no message thrown in the console and the applicationWillTerminate: method isn't called at all. Generally, since iOS 4, applicationWillTerminate: is never invoked. You get applicationDidEnterBackground, and that’s where

Re: iOS app restarting from screen one. Why?

2014-06-19 Thread Alex Zavatone
On Jun 19, 2014, at 12:13 PM, Quincey Morris wrote: On Jun 19, 2014, at 08:24 , Alex Zavatone z...@mac.com wrote: There is no message thrown in the console and the applicationWillTerminate: method isn't called at all. Generally, since iOS 4, applicationWillTerminate: is never invoked.

Re: Any examples of -[NSScrollView addFloatingSubview:]? SOLVED

2014-06-19 Thread Bill Cheeseman
On Jun 14, 2014, at 3:18 PM, Bill Cheeseman wjcheese...@gmail.com wrote: The -[NSScrollView addFloatingSubview:] method was added in OS X 10.9 Mavericks. I can't find any usage examples, and the Mavericks release notes and the reference document are not helpful to me. Playing around with it

Re: supportedInterfaceOrientations in Swift

2014-06-19 Thread Greg Parker
On Jun 19, 2014, at 2:23 AM, Roland King r...@rols.org wrote: I'm overriding supportedInterfaceOrientations in my view controller because I want it to return Portrait + PortraitUpsideDown, and on iPhone PortraitUpsideDown is not included in the standard return. The Objective-C method

Re: supportedInterfaceOrientations in Swift

2014-06-19 Thread Roland King
On 20 Jun, 2014, at 5:04 am, Greg Parker gpar...@apple.com wrote: override func supportedInterfaceOrientations() - Int { } which makes some sense. I'm tripping over myself trying however to return the correct Int without casting my casts to casts of casts. Please file a bug report.

NSReleasePool issue

2014-06-19 Thread Varun Chandramohan
Hi All, I was playing around with OBJ_DEBUG_MISSING_POOL env variable and set it to YES. I was able to debug most of the issues in my code where I missed auto release pools. This is the last one remaining. However I am not sure where the leak is happening. It looks like NSApplicationMain, do

Re: Advice on document handling

2014-06-19 Thread John Brownie
OK, thank you for the pointers. After a lot of refactoring, I've got things working without deadlocks, and cleaned up various things on the way. However, the autosave is getting too expensive for the bundled document. I've done some testing to show this, so I need to be smarter about saving,

Re: Advice on document handling

2014-06-19 Thread Graham Cox
On 20 Jun 2014, at 12:37 pm, John Brownie john_brow...@sil.org wrote: OK, thank you for the pointers. After a lot of refactoring, I've got things working without deadlocks, and cleaned up various things on the way. However, the autosave is getting too expensive for the bundled document.

Re: Advice on document handling

2014-06-19 Thread John Brownie
On Fri Jun 20 2014 12:58:11 GMT+1000 (PGT) Graham Cox wrote: On 20 Jun 2014, at 12:37 pm, John Brownie john_brow...@sil.org wrote: OK, thank you for the pointers. After a lot of refactoring, I've got things working without deadlocks, and cleaned up various things on the way. However, the