Re: Scroll view within scroll view blocks scrolling

2011-05-14 Thread Philip Dow
On May 14, 2011, at 1:35 AM, William Squires wrote: > > On Apr 28, 2011, at 6:12 PM, Indragie Karunaratne wrote: > >> Despite the confusing title, I'm sure this is an issue that someone else has >> run into before. I have a parent scroll view that houses a bunch of >> subviews, including an N

NSPostWhenIdle not doing its job?

2011-05-14 Thread Jonathan Taylor
Hi folks, This is inevitably a bit of a vague question, but I am hoping somebody may have some words of wisdom to offer nonetheless. The problem can be summarised as: in spite of having a backlog of notifications building up on the main thread, NSPostWhenIdle-qualified notifications do seem to

Re: Can't create temporary file

2011-05-14 Thread Fritz Anderson
On 14 May 2011, at 12:46 AM, Rick Mann wrote: >NSError* err = nil; >NSURL* tempDir = [fm URLForDirectory: NSItemReplacementDirectory >inDomain: NSUserDomainMask >appropriateForURL: inURL >create: true >

create an autorelease pool in the init-method and release it in the dealloc-method ..?

2011-05-14 Thread Martin Batholdy
Hi, I still have trouble understanding the autorelease pool. Lets assume an object Z has a method where it gets a string y and returns another string x. Now when an instance of this object is created and the method is invoked, x is returned and is used somewhere else. Now this method of obje

Re: create an autorelease pool in the init-method and release it in the dealloc-method ..?

2011-05-14 Thread Nick Zitzmann
On May 14, 2011, at 5:43 PM, Martin Batholdy wrote: > I still have trouble understanding the autorelease pool. > > Lets assume an object Z has a method where it gets a string y and returns > another string x. > > Now when an instance of this object is created and the method is invoked, > x is

Re: create an autorelease pool in the init-method and release it in the dealloc-method ..?

2011-05-14 Thread Dave Zarzycki
Here is a trick to help you better understand how to use autorelease pools correctly. Put this in a header somewhere: static inline void subpool(void (^block)(void)) { NSAutoreleasePool *_pool = [[NSAutoreleasePool alloc] init]; block(); [pool drain]; } … and use it like

Tab Bar Application

2011-05-14 Thread koko
Given a Tab Bar Application with n Tab Bar Items what is the recommended pattern for the Views associated with each Tab Bar Item to communicate between themselves? koko "Don't fight the framework." --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: create an autorelease pool in the init-method and release it in the dealloc-method ..?

2011-05-14 Thread Martin Batholdy
thanks! Perhaps my confusion comes from reading about autorelease pools in an objective-c books that focuses on command-line program. So if I understood it correctly; (based on

Re: NSPostWhenIdle not doing its job?

2011-05-14 Thread Ken Thomases
On May 14, 2011, at 11:46 AM, Jonathan Taylor wrote: > The problem can be summarised as: in spite of having a backlog of > notifications building up on the main thread, NSPostWhenIdle-qualified > notifications do seem to be making it through. This is causing me problems > because this idle work

Re: create an autorelease pool in the init-method and release it in the dealloc-method ..?

2011-05-14 Thread Nick Zitzmann
On May 14, 2011, at 8:20 PM, Martin Batholdy wrote: > So if I understood it correctly; > (based on > ) > whenever I add an object to the a