NSTextView scaled using scaleUnitSquareToSize - alignment issue

2011-03-09 Thread Kenneth Baxter
HI, I have a subclass of NSTextView that I am showing on a window. I sometimes want to display it zoomed in, so have been using scaleUnitSquareToSize:, and this works fine so long as the text is left aligned.  When I am zoomed in, and using either center alignment or right alignment the text a

Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]

2011-03-09 Thread Dave Camp
I saw that assertion yesterday in a bit of code that was accidentally calling a MPMoviePlayerController method from a secondary thread. Dave On Mar 8, 2011, at 5:01 PM, Steve Christensen wrote: > I'm seeing the above assertion in an app running on iOS 4.2.1. It then throws > an NSInternalIncon

get a dictionary out of an array of dictionaries by a criterion

2011-03-09 Thread Martin Batholdy
Hi, I have a plist with an array of dictionaries. Now every of these dictionaries has a key 'ID' with an integer. Now how I can get only one dictionary element out of this array where key is equal to x? thanks for any advice! ___ Cocoa-dev mailing

Re: get a dictionary out of an array of dictionaries by a criterion

2011-03-09 Thread Dave DeLong
Load the array into memory. Create an NSPredicate with the predicateFormat: @"ID = %d", myID Use filteredArrayUsingPredicate: The resulting array contains the dictionaries you're looking for. OR Loop through the array and find it yourself. Dave On Mar 9, 2011, at 9:18 AM, Martin Batholdy wrote:

Re: How to wait for methods with result/completion blocks to finish?

2011-03-09 Thread Chris Markle
Matt, Kyle, Thanks for taking your time to give me your thoughts on this. It's good food-for-thought and "thought" is what I need now... Thanks! Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Fwd: NSXMLParserDelegateAbortedParseError

2011-03-09 Thread Josh Caswell
Kevin, > I see -abortParse and parseErrorOccurred: as there for when your > parser chokes on the data. > I think you're jumping in a bit early by using abort. Okay, I've got it. Thanks very much for the input! I plan to answer my question on StackOverflow and I'll give you a mention unless you ob

Okay to talk about Xcode 4 now?

2011-03-09 Thread Charles Srstka
Since Xcode 4 was just released on the App Store and can now be downloaded by anyone with an internet connection, is it safe to say that it no longer has “secret” status and can be talked about without violating NDA? Charles___ Cocoa-dev mailing list

Re: Okay to talk about Xcode 4 now?

2011-03-09 Thread Kyle Sluder
On Wed, Mar 9, 2011 at 1:16 PM, Charles Srstka wrote: > Since Xcode 4 was just released on the App Store and can now be downloaded by > anyone with an internet connection, is it safe to say that it no longer has > “secret” status and can be talked about without violating NDA? If you do want to

Cocoaheads Lake Forest meeting TONIGHT, 7pm, El Toro library

2011-03-09 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. Please join us TONIGHT from 7pm to 9pm on Wednesday, 3/9. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630 This will be a somewhat informal meetin

Re: Outlets Not Connected In awakeFromNib

2011-03-09 Thread Jonathan Hess
On Mar 3, 2011, at 3:31 AM, Uli Kusterer wrote: > On 02.03.2011, at 10:54, Andreas Grosam wrote: >> I have a very basic custom UIViewController with its own associated nib >> file. This view controller is the "root view controller" of a Navigation >> Controller which is itself embedded within a

Finding network mounted DVDs

2011-03-09 Thread P Teeson
In my app I want to find all mounted DVD volumes, including those mounted from other Macs on my network. The reason is that I want the user to be able to choose the one they want. Here is the code I am using to find them (based on the CDROM sample from Apple): kern_return_t FindEjectableDVDMedia