async loading crash

2012-02-08 Thread Jan E. Schotsman
Hello, I am loading a movie and intend to process it when the duration property has loaded. Unfortunately the thread "com.apple.coremedia.formatreaderloader.makereadyforinspection" crashes in pthread_mutex_unlock after running the processMovie method. Can anybody see what is wrong? This is

Re: Lion's 'restore windows' vs. app with initial 'login'

2012-02-08 Thread Eric Slosser
On Feb 7, 2012, at 2:09 PM, Quincey Morris wrote: > On Feb 7, 2012, at 09:27 , Eric Slosser wrote: > >> I've got an app that has a login step at the beginning. Until the user has >> logged on, it's inappropriate to display the documents that were open when >> the last user quit. Lion's 'resto

Re: How to get bookmarks data for non-existing files

2012-02-08 Thread Fritz Anderson
On 8 Feb 2012, at 1:42 AM, Gerriet M. Denkmann wrote: > > On 8 Feb 2012, at 14:30, Quincey Morris wrote: > >> On Feb 7, 2012, at 22:58 , Gerriet M. Denkmann wrote: >> ... >>> But when the referenced file does NOT exist, url will be nil and NSError >>> just tells me: "File does not exist". >>>

Cocoaheads - Silicon Valley : February Meeting Details

2012-02-08 Thread Tedd Fox
Silicon Valley - Cocoaheads 2.0! When: Thursday, February 16, 2012 19:00-21:00 Where: Grand Teton Tech Talk Room, GWC-2 (Google West Campus 2) 1501 Salado Dr. Mountain View CA. Thanks AGAIN to David Oster and Google, Inc. for the room! http://turbozen.com/cocoaheads/Grand%20Teton.jpg

Re: async loading crash

2012-02-08 Thread Fritz Anderson
On 8 Feb 2012, at 8:00 AM, Jan E. Schotsman wrote: > if ( status == AVKeyValueStatusLoaded ) { > [self performSelectorOnMainThread: @selector(processMovie:) > withObject: movieAsset > waitUntilDone: YES]; > } (Reformatted to fit the screen and my c

drawing 1 bit images, and image resolution

2012-02-08 Thread Chris Paveglio
I need to save an NSImage as a TIFF file, as a 1-bit (black and white) image, and at a specific resolution (dpi). I have my NSImage being created in RGB mode, and I can save it (as RGB). I've been trying to read the other posts on 1-bit images, but I don't understand things like "you'll have to

Re: drawing 1 bit images, and image resolution

2012-02-08 Thread zav
I know this is somewhat lame, but could you use sips from a shell call to convert your saved image to a tiff and delete the original? Sent from my Verizon Wireless BlackBerry -Original Message- From: Chris Paveglio Sender: cocoa-dev-bounces+zav=mac.com@lists.apple.comDate: Wed, 08 Feb 2

Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
Hi all. Our app is crashing on the deallocation of a custom control, which resides on a view that's pushed onto the navigation controller's stack. The problem is that this view is almost never deallocated, even long after the user dismisses it with the Back button. It's not a leak, so I guess th

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread Conrad Shultz
On 2/8/12 4:23 PM, G S wrote: > Hi all. > > Our app is crashing on the deallocation of a custom control, which resides > on a view that's pushed onto the navigation controller's stack. > > The problem is that this view is almost never deallocated, even long after > the user dismisses it with the

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
Thanks for the response. > Even *if* deallocation occurs later, that shouldn't cause a crash. > I'm not suggesting that this is what's causing the crash. It's simply preventing me from debugging the problem, because I can't reproduce it on demand. It's just a crash in the control's dealloc met

Cocoaheads meeting tonight in Lake Forest CA

2012-02-08 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630 Please join us from 7pm to 9pm on Wednesday, 2/8 We will be starting coding up a simple MacOS X a

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread Conrad Shultz
On 2/8/12 4:54 PM, G S wrote: > Thanks for the response. > > > Even *if* deallocation occurs later, that shouldn't cause a crash. > > > I'm not suggesting that this is what's causing the crash. It's simply > preventing me from debugging the problem, because I can't reproduce it > on deman

Re: How to get bookmarks data for non-existing files

2012-02-08 Thread Gerriet M. Denkmann
On 8 Feb 2012, at 21:37, Fritz Anderson wrote: > On 8 Feb 2012, at 1:42 AM, Gerriet M. Denkmann wrote: > >> >> On 8 Feb 2012, at 14:30, Quincey Morris wrote: >> >>> On Feb 7, 2012, at 22:58 , Gerriet M. Denkmann wrote: >>> > ... But when the referenced file does NOT exist, url will be ni

Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
> > > It's just a crash in the control's dealloc method: > > 0x0019f56e -[ThumbStripView dealloc] > > But what is the crash? EXC_BAD_ACCESS? > Don't know. The above is all that appears in the crash log, and it's so hard to reproduce that I've never seen it while running under the debugger. If s

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread Alex Zavatone
I'd check to see if it's already been deallocated. Try outputting one of the variables within it before deallocating. If it crashes or is invalid, then that would indicate that yep, it's being deallocated. ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
On Wed, Feb 8, 2012 at 6:41 PM, Alex Zavatone wrote: > I'd check to see if it's already been deallocated. > > Thanks Alex. I don't know which item you mean (the control or its parent view), but I have breakpoints set in both of their dealloc methods and those breakpoints do work. So I know the

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread Alex Zavatone
On Feb 8, 2012, at 9:05 PM, G S wrote: > On Wed, Feb 8, 2012 at 6:41 PM, Alex Zavatone wrote: > I'd check to see if it's already been deallocated. > > > Thanks Alex. I don't know which item you mean (the control or its parent > view), but I have breakpoints set in both of their dealloc metho

Re: How to get bookmarks data for non-existing files

2012-02-08 Thread Quincey Morris
On Feb 8, 2012, at 18:20 , Gerriet M. Denkmann wrote: > The only keys which seem to work for an non-existing file seem to be: > NSURLNameKey > NSURLIsDirectoryKey > NSURLIsRegularFileKey > NSURLIsSymbolicLinkKey > NSURLIsVolumeKey > (I did try many, though not all

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread G S
> > AH. > > There you go. You gotta realize that if you release an object more than > once, that WILL end up crashing, though not necessarily when you expect. > Hm. I didn't say this (because I thought it was obvious) , but I released it three times in succession *as an experiment to force t

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-08 Thread Conrad Shultz
On 2/8/12 6:26 PM, G S wrote: >> >>> It's just a crash in the control's dealloc method: >>> 0x0019f56e -[ThumbStripView dealloc] >> >> But what is the crash? EXC_BAD_ACCESS? >> > > Don't know. The above is all that appears in the crash log, and it's so > hard to reproduce that I've never seen it

How to tell Xcode to forget file

2012-02-08 Thread Alexander Reichstadt
Hi, I am loosing my mind here. I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I removed the file. It now did compile but warned, now over the absence of this file. I tried everything to get th

Re: How to tell Xcode to forget file

2012-02-08 Thread Vyacheslav Karamov
Hi! You need to remove file from the project tree in XCode. 09.02.2012 9:20, Alexander Reichstadt пишет: Hi, I am loosing my mind here. I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I rem

Re: How to tell Xcode to forget file

2012-02-08 Thread Alexander Reichstadt
If you mean to select the file and hit the delete-key, this was the first and what seemed to be the most logical to me. It didn't do anything though. The project behaved as if the file would still be included in a target, but it wasn't anywhere. Am 09.02.2012 um 08:37 schrieb Vyacheslav Karamo