Re: Re : Re: Saving while opening with NSDocument

2014-03-24 Thread Colas B
Finally, I put the "saveDocument" in the "NIBDidLoad" method, with an "afterDelay:0". I was reluctant to use this "afterDelay:0" (I wish there were a method called "performOnNextRunLoop"). This smells like a hack !!! It was easier to call the "saveDocument" than to subclass NSDocumentController,

Re: Re : Re: Saving while opening with NSDocument

2014-03-24 Thread Alto Test1
Call me on my mobile. From: colasj...@yahoo.fr To: quinceymor...@rivergatesoftware.com To: cocoa-dev@lists.apple.com Sent: Mon, Mar 24, 2014 Subject: Re: Re : Re: Saving while opening with NSDocument Finally, I put the "saveDocument" in the "NIBDidLoad" method, with an "afterDelay:0". I was rel

Re: Re : Re: Saving while opening with NSDocument

2014-03-24 Thread Kyle Sluder
On Mar 24, 2014, at 10:05 AM, Colas B wrote: > > Finally, I put the "saveDocument" in the "NIBDidLoad" method, with an > "afterDelay:0". I was reluctant to use this "afterDelay:0" (I wish there were > a method called "performOnNextRunLoop"). This smells like a hack !!! > It was easier to call t

Re: Simulating sublayers in CATiledLayer

2014-03-24 Thread David Duncan
On Mar 22, 2014, at 2:18 AM, Remco Poelstra wrote: > How can I make sure that some custom drawing method get's called? Call -setNeedsDisplay on the layer (layers are valid by default) -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

iOS table view cell deletions not animating

2014-03-24 Thread Rick Mann
I recently had to switch away from using NSFetchedResultsController. My replacement code is all working correctly, but for some reason, MOST of my row deletions don't animate. I've tried setting the animation style to auto and bottom. Most of them simply disappear with no animation. On some occa

Re: iOS table view cell deletions not animating

2014-03-24 Thread Rick Mann
Ah! I had a spurious -reloadData call that was trouncing everything else. On Mar 24, 2014, at 14:28 , Rick Mann wrote: > I recently had to switch away from using NSFetchedResultsController. My > replacement code is all working correctly, but for some reason, MOST of my > row deletions don't an

Creating NSViewController with -init.

2014-03-24 Thread Rick Mann
I'm creating an NSViewController subclass by calling -init, and at no time passing a name for nibNameOrNil. According to the docs, this should result in an exception, but it's building my view based on the .xib of the same name without a problem. Nice, but confusing. What's it supposed to do?

Re: Creating NSViewController with -init.

2014-03-24 Thread Kyle Sluder
On Mon, Mar 24, 2014, at 05:41 PM, Rick Mann wrote: > I'm creating an NSViewController subclass by calling -init, and at no > time passing a name for nibNameOrNil. According to the docs, this should > result in an exception, but it's building my view based on the .xib of > the same name without a p

Re: Creating NSViewController with -init.

2014-03-24 Thread Rick Mann
On Mar 24, 2014, at 17:53 , Kyle Sluder wrote: > On Mon, Mar 24, 2014, at 05:41 PM, Rick Mann wrote: >> I'm creating an NSViewController subclass by calling -init, and at no >> time passing a name for nibNameOrNil. According to the docs, this should >> result in an exception, but it's building m

Re: Creating NSViewController with -init.

2014-03-24 Thread Seth Willits
General advice from my experience: 1. My standard practice has always been to simply override nibName, and call alloc] init]. The majority of the time, view-related properties that need to created that you might normally stick in -initXYZ, I put in -loadView after calling super. (Burn awakeFr

Understanding Application crash

2014-03-24 Thread Appa Rao Mulpuri
Hi List, What is the best way to understand the Cocoa application crashes? Some times my application is getting crashed, while clicking on the NSButtons, but it is not always and very rarely. It is happening in the production, not in the staging environment. 0 CoreFoundation

Re: Understanding Application crash

2014-03-24 Thread Jens Alfke
On Mar 24, 2014, at 10:25 PM, Appa Rao Mulpuri wrote: > What is the best way to understand the Cocoa application crashes? Some times > my application is getting crashed, while clicking on the NSButtons, but it is > not always and very rarely. It is happening in the production, not in the > s

Re: Understanding Application crash

2014-03-24 Thread Appa Rao Mulpuri
Thanks for the reply Jens. On 3/25/14 11:06 AM, "Jens Alfke" wrote: > >On Mar 24, 2014, at 10:25 PM, Appa Rao Mulpuri >wrote: > >> What is the best way to understand the Cocoa application crashes? Some >>times my application is getting crashed, while clicking on the >>NSButtons, but it is n

Re: Understanding Application crash

2014-03-24 Thread Jens Alfke
On Mar 24, 2014, at 10:48 PM, Appa Rao Mulpuri wrote: > Agreed, Since this exception is getting rarely. Do we have any provision > to extend the stack trace to print in which method the object is getting > deallocated in our class? Look up NSZombieEnabled, although that’s not really something y