Re: While running our iPhone app, the screen sometimes goes white and locks up. Any idea why?

2012-01-23 Thread G S
Good info. Thanks, guys! ___ 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

Changing Album Name property of the audio book track, does not affect the title of Audiobook on iOS5 device.

2012-01-23 Thread Payal Mundhada
Hi All, I am transferring audiobook from Mac OS X to iOS device using iTunes (during transfer the audiobook is not copied to iTunes). For the transfer I am using apple script (with Cocoa). I found that if the album name of audiobook is not set, after transfer on iOS device (iPhone, iPad..)the

Re: NSOpenPanel problem

2012-01-23 Thread Jan E. Schotsman
On Jan 23, 2012, at 5:17 AM, Ken Thomases wrote: On Jan 22, 2012, at 1:24 PM, Jan E. Schotsman wrote: Suppose I want to display a modeless choose file dialog with the beginWithCompletionHandler method. How can I pass some context info to the handler? Blocks capture whatever local

Re: NSOpenPanel problem

2012-01-23 Thread Conrad Shultz
(Re-post on list.) On 1/23/12 1:41 AM, Jan E. Schotsman wrote: That's great indeed, but I need the block to work with a method parameter (an NSString object). Do I need to copy the NSString to an ivar? No, you just use it directly. As Ken mentioned, any variable you reference in a block is

Re: Cocoa-dev Digest, Vol 9, Issue 39

2012-01-23 Thread lpeng...@gmail.com
Re: Versions, -windowWillClose: (Martin Hewitson) 2. Re: NSSlider and arrangedObjects (Ken Thomases) 3. Re: NSXMLParser, streams, multiple threads, and crashing (Jens Alfke) 4. Re: NSXMLParser, streams, multiple threads, and crashing (Thomas Davie) 5. Re: NSTextView : Scroll top

Re: NSOpenPanel problem

2012-01-23 Thread Jan E. Schotsman
On Jan 23, 2012, at 11:37 AM, Conrad Shultz wrote: You *really* need to read the docs on blocks and GCD since they are the modern way of writing threaded code, implementing callbacks, etc. I'd start with the Short Practical Guide to Blocks -

Re: NSOpenPanel problem

2012-01-23 Thread Ken Thomases
On Jan 23, 2012, at 9:16 AM, Jan E. Schotsman wrote: On Jan 23, 2012, at 11:37 AM, Conrad Shultz wrote: if I try to pass on someString in a C struct (contextInfo) then the compiler complains that ARC doesn't like object pointers in C structs. I could serialize and unserialize the string. Or

Re: NSOpenPanel problem

2012-01-23 Thread Jan E. Schotsman
On Jan 23, 2012, at 5:08 PM, Ken Thomases wrote: If you're supporting Leopard, then you can't use ARC and the original problem goes away. ??? I have set development target = 10.7 SDK, deployment target = 10.5 and ARC is on. The compiler doesn't complain. I have clicked the validate

What causes a UITableViewCell to be deallocated?

2012-01-23 Thread Laurent Daudelin
Hello. I'm trying to track a crash in our app where we have a custom UITableView cell that contains a UITextView because we need the ability to display and open links that might be in the text we're displaying in the text view. The problem is that somehow, the cell is deallocated and WebKit

vForce Performance

2012-01-23 Thread dct
I recently posted a query on the Xcode-Users list but with no reply so far. I hopes of accelerating some standard C functions, I've run a few timing experiments to assess vForce.h function performance. The results are disappointing. - Comparing the time to run vvsqrt( ) on a 1 point data

Re: NSOpenPanel problem

2012-01-23 Thread Ken Thomases
On Jan 23, 2012, at 12:22 PM, Jan E. Schotsman wrote: On Jan 23, 2012, at 5:08 PM, Ken Thomases wrote: If you're supporting Leopard, then you can't use ARC and the original problem goes away. ??? I have set development target = 10.7 SDK, deployment target = 10.5 and ARC is on. The

Re: What causes a UITableViewCell to be deallocated?

2012-01-23 Thread Luke Hiesterman
Think about it simply. A cell gets deallocated just like any other object - when its retain count goes to zero. If you're looking for a cell getting deallocated on a non-main thread, you're looking for a place release is being called on a non-main thread. I would think you could just override

Re: What causes a UITableViewCell to be deallocated?

2012-01-23 Thread Laurent Daudelin
It seems that the deallocation happens when a block is being deallocated. Is it possible that a block ran on the main queue of an NSOperationQueue could be deallocated in another thread? -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin

Re: What causes a UITableViewCell to be deallocated?

2012-01-23 Thread Steve Christensen
A UITableViewCell could be deallocated as soon as its row scrolls out of view. UITableView will reuse cells if you specify a reuse identifier, but I don't believe that the docs actually specify the number of cells that are reused. I'm assuming that the web view is displayed when the user taps a

Re: What causes a UITableViewCell to be deallocated?

2012-01-23 Thread Laurent Daudelin
Steve, There are no web views. Because we're using a UITextView, it loads the WebKit behind the scene (I guess to support links that could appear in the text in the UITextView) and when that UITextView is deallocated from another thread than the main thread or the webkit thread, it raises an