NSMutableArray contract

2011-04-01 Thread Carlos Eduardo Mello
Hi people, I just realized I may be doing something dangerous with an NSMutableArray. I searched Guides and References on this but couldn't find an explicit answer: - Does an NSMutableArray guarantee to retain an object on addObject:? - Does it ever make a copy of the original instead of re

Re: NSMutableArray contract

2011-04-01 Thread Hank Heijink (Mailinglists)
On Apr 1, 2011, at 9:29 AM, Carlos Eduardo Mello wrote: > Hi people, > > I just realized I may be doing something dangerous with an NSMutableArray. I > searched Guides and References on this but couldn't find an explicit answer: > > - Does an NSMutableArray guarantee to retain an object on addO

Re: NSMutableArray contract

2011-04-01 Thread Carlos Eduardo Mello
Thanks for the confirmation. You can of course check that by logging the address of the object. I wonder what you're observing that makes you think this is the problem? The objects in this array are the main thing in my app. Various parts of the UI direct actions to each one of them, when

Re: NSMutableArray contract

2011-04-01 Thread Andy Lee
On Apr 1, 2011, at 9:49 AM, Carlos Eduardo Mello wrote: > It all works fine most of the time, but every once in a while (can't figure > out why...) the object seems to be "pulled from under my feet" and I get BAD > ACCESS crashes in apparently random places. I tried to debug it but the BAD > ACC

Re: NSMutableArray contract

2011-04-01 Thread Hank Heijink (Mailinglists)
On Apr 1, 2011, at 9:49 AM, Carlos Eduardo Mello wrote: > The objects in this array are the main thing in my app. Various parts of the > UI direct actions to each one of them, when they are selected (only one at a > time). The objects contain a path which is drawn and used for hit detection > a

Re: Compiling screensaver for 10.5

2011-04-01 Thread Nick Zitzmann
On Apr 1, 2011, at 12:13 AM, Gabriel Zachmann wrote: >> Which version of Xcode are you using? Note that 3.2.6 dropped PPC support. > > I've got 3.2.6. Yeah, that would do it. 3.2.6 didn't completely drop PPC support, but it did drop it from the list of standard architectures. > % file ArtSave

Re: Simulate touch event with cordinate?

2011-04-01 Thread Fritz Anderson
On 31 Mar 2011, at 11:36 PM, Rikza Azriyan wrote: > Anyone could help me,, > I want to handle touch drag event programatically, for example in ibooks > reader, we use fingertips for navigating to next/prev page by sliding the > screen to the left/right direction. > I want to handle this event w

Re: Seeking advice for how to implement "notification" upon completion of asynchronous upload

2011-04-01 Thread Chris Markle
WT, Thanks for the code! So of the approaches: >> 1. delegates >> 2. blocks >> 3. KVO >> 4. Notifications you went with delegates (didFinishDownloadingData: and failedWithError:) for completion notification. Has this worked out well for others that have used this code? Did you consider any of t

(no subject)

2011-04-01 Thread Lance Kwan
http://shaio.com/molo.php ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscriptio

Re: Are the progress spinner images publically available?

2011-04-01 Thread James Bucanek
John Pannell wrote (Thursday, March 31, 2011 3:18 PM -0600): Don't know if this fits your objectives, but I found an excellent layer-based solution to this: YRKSpinningProgressIndicator https://github.com/kelan/yrk-spinning-progress-indicator-layer John, t

Book for expert programmer about cocoa and Objective-C

2011-04-01 Thread Rodrigo Zanatta Silva
Hi. I need to have a good book in my side to program with Objective-C using the cocoa. I read the beginner books like "... for absolute beginner", "starting to program with...". But now, I need a book for professional. Book that is BIG, DIFFICULT and is HARDCORE about anything for cocoa and object

Re: Seeking advice for how to implement "notification" upon completion of asynchronous upload

2011-04-01 Thread WT
On Apr 1, 2011, at 12:47 PM, Chris Markle wrote: > WT, > > Thanks for the code! Hello again, Chris. You're most welcome! > So of the approaches: > >>> 1. delegates >>> 2. blocks >>> 3. KVO >>> 4. Notifications > > you went with delegates (didFinishDownloadingData: and > failedWithError:) for

Re: Book for expert programmer about cocoa and Objective-C

2011-04-01 Thread John Pannell
Even though it is getting on in age, I really like Anguish, Buck and Yacktman's Cocoa Programming... http://www.amazon.com/Cocoa-Programming-Scott-Anguish/dp/B000212NUM/ref=sr_1_7?s=books&ie=UTF8&qid=1301687411&sr=1-7 Once you've completed the beginner stuff, this provides a very thorough look a

Re: Book for expert programmer about cocoa and Objective-C

2011-04-01 Thread Scott Ellsworth
I am told that buck and yacktman's cocoa design patterns is a good source of interview questions for Cocoa On Fri, Apr 1, 2011 at 1:01 PM, John Pannell wrote: > Even though it is getting on in age, I really like Anguish, Buck and > Yacktman's Cocoa Programming... > > > http://www.amazon.com/Cocoa

Re: Are the progress spinner images publically available?

2011-04-01 Thread Andreas Mayer
Am 01.04.2011 um 18:38 schrieb James Bucanek: > So I'm going with plan B, which is create a custom CALayer that draws a > single spinner "wheel" image and then rotate it using a key-frame animation. It's old, but you want to take a look regardless: http://www.harmless.de/cocoa-code.php#progre

Re: Simulate touch event with cordinate?

2011-04-01 Thread Rikza Azriyan
Sorry maybe you guys don't understand with my bad english.. I said UIGestureRecognizer does'n do what i want because it's for detecting/responding touch,gesture,tap etc that user did to the screen. It's for respond the user interaction to the screen... In my case, i want to make that interaction.

Re: Simulate touch event with cordinate?

2011-04-01 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/1/11 6:44 PM, Rikza Azriyan wrote: > Sorry maybe you guys don't understand with my bad english.. > I said UIGestureRecognizer does'n do what i want because it's for > detecting/responding touch,gesture,tap etc that user did to the screen. It's >

Re: Simulate touch event with cordinate?

2011-04-01 Thread Chase Latta
Are you trying to achieve something like, in the iBooks example, the user can swipe their finger to change the page or press a 'next page' button and have the same animation occur? If so then you need to write one function to handle the animation and call that in response to either a button push o

Re: Simulate touch event with cordinate?

2011-04-01 Thread Rikza Azriyan
Thanks chase for your reply, Yes, i want to make an application like ibooks that the user can navigate the page by swipe the screen, than > - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; Will respond for that swipe... But in my case, i don't want to make that swipe with my fing