NSClassDescriptionNeededForClassNotification

2011-03-21 Thread Kevin Bracey
Hi there, I hope that I could register class descriptions lazily, I like doing most things lazily. But I can't find where or how to listen for the NSClassDescriptionNeededForClassNotification. I've place [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(

UITabBarController calls viewDidAppear

2011-03-21 Thread Remco Poelstra
Hi, I've a UITabBarController. with two tabs, that's loaded from the MainWindow.xib. It's UINavigationControllers are in the same NIB, which load their UITableViewControllers from external NIB's (as recommended by Apple). The tableview in the first tab loads in its

Re: Exception not being caught

2011-03-21 Thread jonat...@mugginsoft.com
On 21 Mar 2011, at 04:11, Rick Mann wrote: Can you give us the exception report? Is it an NSException instance? Yes. It is raised by this line of code: [NSException raise:NSInvalidArchiveOperationException format:@Network error domain:%@ code:%d, [requestError domain], [requestError

UIWebView HTML to match UITextView

2011-03-21 Thread BareFeetWare
Hi all, I'm trying to show text in a UIWebView to match exactly how it appears in a UITextView. Is there a standard library or subclass to do this? I've got it mostly working, by programmatically implementing what is basically a copy of the HTML syntax produced by TextEdit. But a few things

HTML Writer class

2011-03-21 Thread Philip Vallone
Hi list, Is there a Cocoa Touch class for creating HTML documents? For example, in C# there is the HTMLDoument class. I searched the reference docs, but came up empty. Regards, Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Edit NSScrollView text

2011-03-21 Thread Leonardo
Hi, on XCode version 3 I was able to launch IB and edit the text of a NSScrollView. On XCode 4 I can't. And even if I modify this text, which is saved within the file MainMenu.nib/keyedobjects.nib when I relaunch XCode 4 and open my project file, the change doesn't show up. I always see the old

Re: HTML Writer class

2011-03-21 Thread Mike Abdullah
https://github.com/karelia/KSHTMLWriter Standard BSD license On 21 Mar 2011, at 13:04, Philip Vallone wrote: Hi list, Is there a Cocoa Touch class for creating HTML documents? For example, in C# there is the HTMLDoument class. I searched the reference docs, but came up empty.

TweenTrack working on QT10

2011-03-21 Thread Leonardo
Hi, if I add a Tween Track to my QT movie, I end up with a movie file requiring QT7 and not working on QT10. If I don't add the tween track, QT10 can open the movie. So the difference is the Tween Track. However Safari 5.0.3 can play the movie with the Tween Track and I can properly hear the

Re: Exception not being caught

2011-03-21 Thread Rick Mann
On Mar 21, 2011, at 2:50 AM, jonat...@mugginsoft.com wrote: As you are raising the exception then you could try raising the exception experimentally when the operation starts to help source the problem. You mentioned break points earlier. What happens when the code runs outside of the

Popover Shrinks beyond Indicator

2011-03-21 Thread Gordon Apple
I have a popover with a navigation controller, which launches from a button near the right side of (and at toe top of) the screen. Subsequent smaller panels within the popover downsize correctly, but resizing is always by moving in the right side of the popover, often beyond the anchor point for

Re: Popover Shrinks beyond Indicator

2011-03-21 Thread Corbin Dunn
Hi Gordon, On Mar 21, 2011, at 12:34 PM, Gordon Apple wrote: I have a popover with a navigation controller, which launches from a button near the right side of (and at toe top of) the screen. Subsequent smaller panels within the popover downsize correctly, but resizing is always by moving

Re: Exception not being caught

2011-03-21 Thread Greg Parker
On Mar 20, 2011, at 9:11 PM, Rick Mann wrote: On Mar 20, 2011, at 12:45 PM, jonat...@mugginsoft.com wrote: On 20 Mar 2011, at 19:17, Rick Mann wrote: I have some code, called from a subclass of NSOperation, that throws an exception pretty reliably if I put a breakpoint elsewhere in the code

MPMoviePlayerController setContentURL twice

2011-03-21 Thread Heath Borders
I create an embedded MPMoviePlayerController thusly inside my loadView method: self.moviePlayerController = [[[MPMoviePlayerController alloc] init] autorelease]; // add to view, setup moviePlayerController's view frame, etc And I can later load a movie the user chooses thusly: NSURL *fileUrl =

Re: Exception not being caught

2011-03-21 Thread Rick Mann
On Mar 21, 2011, at 2:03 PM, Greg Parker wrote: On Mar 20, 2011, at 9:11 PM, Rick Mann wrote: On Mar 20, 2011, at 12:45 PM, jonat...@mugginsoft.com wrote: On 20 Mar 2011, at 19:17, Rick Mann wrote: I have some code, called from a subclass of NSOperation, that throws an exception pretty

Re: Exception not being caught

2011-03-21 Thread Kyle Sluder
On Mon, Mar 21, 2011 at 2:03 PM, Greg Parker gpar...@apple.com wrote: You can't currently throw an exception across a forwarded call. When the exception unwinder hits the forwarding frame, it stops and the exception goes uncaught. You'll need to put your exception handler at a different

Re: Exception not being caught

2011-03-21 Thread Greg Parker
On Mar 21, 2011, at 2:06 PM, Kyle Sluder wrote: On Mon, Mar 21, 2011 at 2:03 PM, Greg Parker gpar...@apple.com wrote: You can't currently throw an exception across a forwarded call. When the exception unwinder hits the forwarding frame, it stops and the exception goes uncaught. You'll need

Re: Exception not being caught

2011-03-21 Thread Rick Mann
On Mar 21, 2011, at 2:03 PM, Greg Parker wrote: On Mar 20, 2011, at 9:11 PM, Rick Mann wrote: On Mar 20, 2011, at 12:45 PM, jonat...@mugginsoft.com wrote: On 20 Mar 2011, at 19:17, Rick Mann wrote: I have some code, called from a subclass of NSOperation, that throws an exception pretty

Re: Exception not being caught

2011-03-21 Thread Rick Mann
On Mar 21, 2011, at 2:19 PM, Greg Parker wrote: On Mar 21, 2011, at 2:06 PM, Kyle Sluder wrote: On Mon, Mar 21, 2011 at 2:03 PM, Greg Parker gpar...@apple.com wrote: You can't currently throw an exception across a forwarded call. When the exception unwinder hits the forwarding frame, it

Re: Exception not being caught

2011-03-21 Thread Laurent Daudelin
On Mar 21, 2011, at 14:19, Greg Parker wrote: (The problem is that the forwarding machinery is hand-written assembly, and nobody added hand-written exception unwind tables to match. With zero-cost exceptions, the unwinder cannot process a frame without its unwind tables.) Hand-written

Re: Exception not being caught

2011-03-21 Thread Greg Parker
On Mar 21, 2011, at 2:43 PM, Laurent Daudelin wrote: On Mar 21, 2011, at 14:19, Greg Parker wrote: (The problem is that the forwarding machinery is hand-written assembly, and nobody added hand-written exception unwind tables to match. With zero-cost exceptions, the unwinder cannot process a

Re: Exception not being caught

2011-03-21 Thread Steve Steinitz
Hi Johnathan On 21/03/11, Rick Mann Jonathan Mitchell wrote: My NSOperation subclass wraps the call to the network code in a @try/catch block. But when this exception is raised, the app terminates due to an uncaught exception. Exceptions on the main thread of a Cocoa application do not

Re: Popover Shrinks beyond Indicator

2011-03-21 Thread Gordon Apple
Because this is a public forum, I assumed it would be clear I was referring to iOS. I know nothing about Lion. Haven¹t even downloaded it. On 3/21/11 3:59 PM, Corbin Dunn corb...@apple.com wrote: Hi Gordon, On Mar 21, 2011, at 12:34 PM, Gordon Apple wrote: I have a popover with a

Re: HTML Writer class

2011-03-21 Thread Philip Vallone
Thanks Mike! On Mar 21, 2011, at 10:45 AM, Mike Abdullah wrote: https://github.com/karelia/KSHTMLWriter Standard BSD license ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

iOS 4 developer agreement?

2011-03-21 Thread Rick Mann
Where is this document to be found? I've looked all over the iOS developer portal (and iTunesConnect), and can't find it. TIA, Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

UISegmentedControl -selectSegmentAtIndex:?

2011-03-21 Thread Jon Sigman
iOS 4.3. I'm using a UISegmentedControl and want to preselect one of the segments in -viewDidLoad based on the last user setting stored in defaults. But, I can't find a -selectSegmentAtIndex: method or a reasonable facsimile. How can I go about doing this?

Re: UISegmentedControl -selectSegmentAtIndex:?

2011-03-21 Thread Luke the Hiesterman
@property(nonatomic) NSInteger selectedSegmentIndex; so, segmentedControl.selectedSegmentIndex = theIndexYouWant; Luke On Mar 21, 2011, at 6:49 PM, Jon Sigman wrote: iOS 4.3. I'm using a UISegmentedControl and want to preselect one of the segments in -viewDidLoad based on the last user

Re: UISegmentedControl -selectSegmentAtIndex:?

2011-03-21 Thread Jon Sigman
Thanks, Luke. Somehow I was thinking that was a read-only property (selected = past tense). My bad. From: Luke the Hiesterman luket...@apple.com To: Jon Sigman rf_...@yahoo.com Cc: cocoa-dev@lists.apple.com Sent: Mon, March 21, 2011 6:53:58 PM Subject: Re:

Error reporting in Cocoa (was Re: Exception not being caught)

2011-03-21 Thread Chris Hanson
On Mar 21, 2011, at 2:19 PM, Rick Mann wrote: You can't currently throw an exception across a forwarded call. When the exception unwinder hits the forwarding frame, it stops and the exception goes uncaught. You'll need to put your exception handler at a different level. Hrm. This is

Re: Error reporting in Cocoa (was Re: Exception not being caught)

2011-03-21 Thread Rick Mann
On Mar 21, 2011, at 7:24 PM, Chris Hanson wrote: The reason is that if your exception crosses any stack frame you don’t fully control, all bets are off when it comes to the state of your program. The frameworks have all been written with the assumption that exceptions are only for

NSArrayController selected objects mystery

2011-03-21 Thread Larry Campbell
I am baffled. An NSArrayController I'm using occasionally gets into a state where selectionIndexes returns an NSIndex with one index, 0, which is what I expect and desire, but selectionIndex returns NSNotFound and selectedObjects returns an empty array. How can this be? - lc

Adding tabs programaticaly?

2011-03-21 Thread Vyacheslav Karamov
Hi All! I'm writing IB 3.2 plug-in for NSTabView descendant. After adding new tab CLTabViewItem * item = [[CLTabViewItem alloc] init]; [item setLabel: @new Item]; [tabView addTabViewItem: item]; I'm trying to select it and edit is properties. But IB crashes

NSTableColumn dataCellForRow:

2011-03-21 Thread William Weygandt
Hi, I know this has been discussed before, but I just don't get it: I need to set attributes for a TableColumn cell, based on its row, leaving the cells of other rows, unchanged.  I tried using the method dataCellForRow:.  I just can't seem to make this work.  Not sure I can

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Matt Neuburg
On Mon, 21 Mar 2011 16:04:52 -0500, Heath Borders heath.bord...@gmail.com said: I create an embedded MPMoviePlayerController thusly inside my loadView method: self.moviePlayerController = [[[MPMoviePlayerController alloc] init] autorelease]; // add to view, setup moviePlayerController's view

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Heath Borders
That's exactly what I did. I have a brand new project with just a ViewController with 3 views: 1 to hold the MPMoviePlayerController's view, 1 button for my first movie, and 1 button for my second movie. When the buttons are clicked, I create NSURLs from the appropriate files. I've included my

Re: UIWebView HTML to match UITextView

2011-03-21 Thread Matt Neuburg
On Mon, 21 Mar 2011 20:58:40 +1100, BareFeetWare list.develo...@barefeetware.com said: Hi all, I'm trying to show text in a UIWebView to match exactly how it appears in a UITextView. Is there a standard library or subclass to do this? This might not be possible, as they may use two completely

Re: Adding tabs programaticaly?

2011-03-21 Thread Seth Willits
On Mar 21, 2011, at 7:08 AM, Vyacheslav Karamov wrote: I'm writing IB 3.2 plug-in One might wonder why given that they're deprecated thanks to Xcode 4... -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: NSTableColumn dataCellForRow:

2011-03-21 Thread Quincey Morris
On Mar 21, 2011, at 16:16, William Weygandt wrote: I need to set attributes for a TableColumn cell, based on its row, leaving the cells of other rows, unchanged. I tried using the method dataCellForRow:. I just can't seem to make this work. Not sure I can subclass this because the

Re: CoreData migration opens ~ file by mistake

2011-03-21 Thread Michael Link
I'm running into this same problem on 10.6 when the migration is automatic or manual. I can always reproduce it with manual migration. After migration and the document window is open and the application is made inactive and active again you may notice the title of the document has suddenly

Re: Adding tabs programaticaly?

2011-03-21 Thread Kyle Sluder
On Mon, Mar 21, 2011 at 9:04 PM, Seth Willits sli...@araelium.com wrote: On Mar 21, 2011, at 7:08 AM, Vyacheslav Karamov wrote: I'm writing IB 3.2 plug-in One might wonder why given that they're deprecated thanks to Xcode 4... Please file a bug against Xcode 4 telling the dev team that

Re: UIWebView HTML to match UITextView

2011-03-21 Thread BareFeetWare
On Mon, 21 Mar 2011 20:58:40 +1100, BareFeetWare list.develo...@barefeetware.com said: I'm trying to show text in a UIWebView to match exactly how it appears in a UITextView. Is there a standard library or subclass to do this? On 22/03/2011, at 2:59 PM, Matt Neuburg wrote: This

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Matt Neuburg
On Mon, 21 Mar 2011 22:59:04 -0500, Heath Borders heath.bord...@gmail.com said: That's exactly what I did. I have a brand new project with just a ViewController with 3 views [SNIP ridiculous quantities of code] I can't read that. And it isn't what I suggested you do. I said make a *minimal*

Re: iOS 4 developer agreement?

2011-03-21 Thread Jeffrey Walton
On Mon, Mar 21, 2011 at 9:26 PM, Rick Mann rm...@latencyzero.com wrote: Where is this document to be found? I've looked all over the iOS developer portal (and iTunesConnect), and can't find it. Visit developer.apple.com. Log into the Member Center. Near the upper left, click the link on your

Re: iOS 4 developer agreement?

2011-03-21 Thread Rick Mann
Thanks much! On Mar 21, 2011, at 10:44 PM, Jeffrey Walton wrote: On Mon, Mar 21, 2011 at 9:26 PM, Rick Mann rm...@latencyzero.com wrote: Where is this document to be found? I've looked all over the iOS developer portal (and iTunesConnect), and can't find it. Visit developer.apple.com. Log