Re: Fastest high-quality thumbnail display

2011-07-29 Thread Scott Anguish
If you want to display many thumbnails (or images in general) why not use the ImageKit? It’s what it was designed for. Check out IK* files. “The IKImageBrowserView class is a view for displaying and browsing a large amount of images and movies efficiently.” On Jul 25, 2011, at 3:04 PM, James

Re: Change in animation?

2011-07-29 Thread Roland King
You asked something similar back in March http://www.cocoabuilder.com/archive/cocoa/300383-iphone-animation-puzzle.html I think the answer is still UIViewAnimationOptionAllowUserInteraction. Don't know why changing to Lion would have made a difference however as I think that option has been off

ANN: HBCollections Blocks Categories

2011-07-29 Thread Heath Borders
Objective-C categories for functional data structure traversal with blocks. The interface was inspired by Javascript Array Iteration Methods. The implementation was inspired by Mike Ash's Implementating Fast Enumeration Friday Q&A. https://github.com/hborders/HBCollections I encourage any feedbac

Change in animation?

2011-07-29 Thread David Rowland
I have a routine that presents and then fades a label and a button, - (void)fadeView:(UIView *)theView { theView.alpha = 1.0; infoButton.hidden = FALSE; [UIView animateWithDuration:2.5 animations:^{theView.alpha = 0.0;} completion:^(BOOL finished){infoBu

Telling Auto Save, "No, I'm busy now"

2011-07-29 Thread Jerry Krinock
With Auto Save enabled in a document, I find that Lion sometimes wants to break into a sequence of operations to do an Auto Save. I haven't been able to find any recommendation of how to tell Auto Save "No, I'm busy now". I just figured out how to do it by overriding saveToURL. It seems t

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread Jerry Krinock
On 2011 Jul 29, at 19:07, Gwynne Raskind wrote: > On Fri, Jul 29, 2011 at 21:48, wrote: >>> Granted that NSKeyedUnarchiver might have left some memory leaks or >>> partially uninitialized objects somewhere, but unarchiving an invalid >>> object should happen rarely if at all... and ordinarily

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread Kyle Sluder
On Jul 29, 2011, at 7:07 PM, Gwynne Raskind wrote: > On Fri, Jul 29, 2011 at 21:48, wrote: >> >> Indeed there may be memory leaks, but that's a relatively benign side >> effect. The security issues I alluded to earlier are a much greater concern >> in any case. > > Can you be more specific

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread Gwynne Raskind
On Fri, Jul 29, 2011 at 21:48, wrote: >> Granted that NSKeyedUnarchiver might have left some memory leaks or >> partially uninitialized objects somewhere, but unarchiving an invalid object >> should happen rarely if at all... and ordinarily my own code should never >> get pointers to such obje

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread wadeslists
> Looking back at code I wrote years ago, I see that I usually did things like >@try { >someObject = [NSKeyedUnarchiver unarchiveObjectWithData:someData]; >} @catch (id exception) { >someObject = nil;// or some other reasonable default state >// mark someData as

Re: A trap with full screen in Lion

2011-07-29 Thread Gideon King
Thanks for that suggestion Martin - I hadn't thought of looking at parent window. I kind of think that is an implementation detail behind the scenes that we shouldn't have to worry about in our code, so will file a bug report about it as Corbin suggested, and hopefully it will either be made to

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread Rainer Brockerhoff
On 29/07/2011, at 20:47, cocoa-dev-requ...@lists.apple.com wrote: > From: Jens Alfke > Date: 29 de julho de 2011 17:15:19 BRT > > On Jul 29, 2011, at 11:12 AM, Jerry Krinock wrote: > >> When invoking -archivedDataWithRootObject: on, say, dictionary, finding an >> un-encodeable object buried so

Re: A trap with full screen in Lion

2011-07-29 Thread Martin Wierschin
> I just came across a bit of an issue with the full screen mode in Lion: if > you have a view and use [[self window] windowController] to get at your > window controller, it will return nil in full screen mode. The window gets > swapped out with an NSToolbarFullScreenWindow, which doesn't have

Re: toolbars & toolbar items in lion

2011-07-29 Thread Kyle Sluder
On Fri, Jul 29, 2011 at 3:50 PM, ronald b. kopelman wrote: >        NSToolbarSeparatorItem & NSToolbarCustomizeToolbarItem seem broken in > xcode 4.1. These items are no longer supported in Lion. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread Kyle Sluder
On Fri, Jul 29, 2011 at 3:54 PM, wrote: > And this is one of several concerns with the NSCoding system.  It may be that > the reason these classes haven't been updated is because there's > consternation over the value of such an update.  Some people consider > NSCoding intractably insecure and

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread wadeslists
> The fact that these methods throw exceptions if their input data cannot be > processed is very uncharacteristic of the Cocoa frameworks. Now it is. Back when NSCoding et al were written, possibly not. Opinions on the use of exceptions vs other methods have waxed and waned over the years. O

toolbars & toolbar items in lion

2011-07-29 Thread ronald b. kopelman
NSToolbarSeparatorItem & NSToolbarCustomizeToolbarItem seem broken in xcode 4.1. I used to be able to add these without a problem previously but now I get errors saying: "The toolbar item with object ID 654 was not in the allowed items list of the toolbar with object ID 651. It has been

Re: What could cause a fast enumeration mutation error in updating tracking areas?

2011-07-29 Thread Gideon King
Thanks for the suggestion Raleigh, but no, there are no other threads involved in any of the tracking area code, and looking at the crash report in more detail, it shows that the array that is being mutated has 27 items in it - the views I create only have one or two tracking areas that I add. I

Re: NSView-based NSTableView: How to animate when using bindings?

2011-07-29 Thread Corbin Dunn
On Jul 29, 2011, at 10:07 AM, Daniel Vollmer wrote: > Helloes, > > I'm experimenting with migrating from my formerly NSCollectionView-based > drawing to using an NSView-based table-view (as the tableView is conceptually > closer to what I'm displaying > (http://www.maven.de/code/wowplot/examp

Re: A trap with full screen in Lion

2011-07-29 Thread Corbin Dunn
Please log this as a bug. Ideally, include steps to reproduce and/or a sample application. thanks! corbin On Jul 28, 2011, at 7:38 PM, Gideon King wrote: > I just came across a bit of an issue with the full screen mode in Lion: if > you have a view and use [[self window] windowController] to

Re: [GM-help] [Q] calling OpenMP functions in a thread function for NSThread?

2011-07-29 Thread JongAm Park
On Jul 29, 2011, at 2:03 PM, Bob Friesenhahn wrote: > On Fri, 29 Jul 2011, JongAm Park wrote: >> >> is there a problem in calling OpenMP functions in a thread function? > > Possibly there is, however, I recall that your main program uses Objective C. > Perhaps the Objective C runtime does not

[Q] calling OpenMP functions in a thread function for NSThread?

2011-07-29 Thread JongAm Park
Hello, I'm using a GraphicsMagick library in my project. However, there I found a very interesting behavior. If I create an instance of Magick::Image in a normal method, it works OK. However, if it is implemented in a thread function, it crashes when it calls omp_get_max_threads(). I tried t

Re: A trap with full screen in Lion

2011-07-29 Thread Lee Ann Rucker
On Jul 29, 2011, at 10:14 AM, Kyle Sluder wrote: > On Fri, Jul 29, 2011 at 9:56 AM, vincent habchi wrote: >> The toolbar is supposed to disappear in full screen mode, no? > > No. > > It hangs out at the top of the screen and slides down out of the way > of the menu bar when you move your mouse

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread Jens Alfke
On Jul 29, 2011, at 11:12 AM, Jerry Krinock wrote: > When invoking -archivedDataWithRootObject: on, say, dictionary, finding an > un-encodeable object buried somewhere in the dictionary would seem to be > quite common. This is a case of passing invalid data, so throwing an exception is approp

Re: MPMoviePlayerController Fast forward

2011-07-29 Thread Heath Borders
You could do key-value observing on currentPlaybackRate. http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMediaPlayback_protocol/Reference/Reference.html#//apple_ref/occ/intfp/MPMediaPlayback/currentPlaybackRate -Heath Borders heath.bord...@gmail.com Twitter: heathbor

Re: Receiving Unicode Input in NSView

2011-07-29 Thread Aki Inoue
Bill, > we used to call interpretKeyEvents in the keyDown handler and the InsertText > handler would get the unicode string, I guess this stopped working with a > system update a while back. We have always required the first responder to adopt either NSTextInput or NSTextInputClient for handling

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-07-29 Thread Jerry Krinock
I received a reply off-list suggesting that I file a bug. And I'll certainly do that, but before I do that I'd like to confirm that I'm not overlooking something obvious. The fact that these methods throw exceptions if their input data cannot be processed is very uncharacteristic of the Cocoa

Re: A trap with full screen in Lion

2011-07-29 Thread Kyle Sluder
On Fri, Jul 29, 2011 at 9:56 AM, vincent habchi wrote: > The toolbar is supposed to disappear in full screen mode, no? No. It hangs out at the top of the screen and slides down out of the way of the menu bar when you move your mouse up to the top edge. This is why it needs to move into its own

NSView-based NSTableView: How to animate when using bindings?

2011-07-29 Thread Daniel Vollmer
Helloes, I'm experimenting with migrating from my formerly NSCollectionView-based drawing to using an NSView-based table-view (as the tableView is conceptually closer to what I'm displaying (http://www.maven.de/code/wowplot/example_chains.png). The NSCollectionView had really nice animation be

Re: A trap with full screen in Lion

2011-07-29 Thread vincent habchi
Le 29 juil. 2011 à 04:50, Gideon King a écrit : > Sorry - missed an important bit of info - this applies for a view that is in > the toolbar. So far as I am aware, it The toolbar is supposed to disappear in full screen mode, no? V. ___ Cocoa-dev ma

Re: UIImageView subclasses

2011-07-29 Thread Matt Neuburg
On Fri, 29 Jul 2011 00:24:56 -0500, William Squires said: >Hi all! > Here's what I've got: (Xcode 3.2.5 - iOS SDK 4) > >A view controller that dynamically creates UIImageView subclass instances as >subviews in it's awakeFromNib > >According to the documentation, UIImageView subclasses do not ena

Re: MPMoviePlayerController Fast forward

2011-07-29 Thread Matt Neuburg
On Thu, 28 Jul 2011 15:06:29 -0400, Steve Kostrey said: >I've implemented MPMoviePlayerController (iPhone/iPad) and I'm playing videos >without trouble but I'm not sure how to receive an event from the Fast forward >overlay button. >I've tried everything the documentation suggests about remote c

Re: What could cause a fast enumeration mutation error in updating tracking areas?

2011-07-29 Thread Raleigh Ledet
Do you have another thread that is doing something with tracking areas? -raleigh On Jul 28, 2011, at 11:33 PM, Gideon King wrote: > Hi, I have a problem where a few users of my program are getting the > following exception: > > 0 CoreFoundation 0x7fff862df7b4 __exceptionPreprocess + 180 >

Re: Filter an array

2011-07-29 Thread Wade Tregaskis
> Further to earlier answers, bear in mind you've got no guarantee that file > extensions are correct, or even exist. Plus of course, you might have both > .jpg and .jpeg. You might well be better iterating through, finding the UTI > of each file, and working from that. Oooh, that's kind of emb

Re: Lion doesn't like tricky.key.paths in bindings?

2011-07-29 Thread Kyle Sluder
On Fri, Jul 29, 2011 at 12:39 AM, Charles Srstka wrote: > Actually, on further thought, this can’t be true, can it? Plenty of methods > built right into the frameworks create objects on the fly — call > valueForKey: to retrieve a property that’s declared as an NSInteger, and > you’ll get an NSNumb

Re: Drawing performance in CALayer

2011-07-29 Thread Kyle Sluder
On Thu, Jul 28, 2011 at 11:23 PM, Graham Cox wrote: > Am I right in thinking that using calls such as NSRectFill within a CALayer > like this is really making OpenGL calls behind the scenes? If so it's > probably going as fast as it can. On my middling iMac it's acceptably fast, > but laptops s

Receiving Unicode Input in NSView

2011-07-29 Thread Bill Appleton
Hi all, I have seen this issue come up a lot, but there isn't much information on how to receive unicode input in a NSView. (I know we are supposed to just type in a NSTextField but that is impossible in our situation where the app must run stand-alone and as a browser plugin). we used to call i

Re: Filter an array

2011-07-29 Thread Chris Paveglio
Looks like the method -[NSArray pathsMatchingExtensions:] is case sensitive. I don't have a problem declaring all the variations I need in lower or upper; but I'll see if speed is an issue on a large number of files. >The docs don't state whether it's case sensitive or not. Thanks for the sugg

UIModalTransitionStylePartialCurl with UITabBarController

2011-07-29 Thread Dan Hopwood
This question has been asked a lot e.g. herebut as far as I can see is yet to be answered in full. I have a `UITabBarController` with a `UINavigationController` as the root vc for one of

Re: Lion doesn't like tricky.key.paths in bindings?

2011-07-29 Thread Charles Srstka
On Jul 28, 2011, at 9:42 PM, Kyle Sluder wrote: > If you're not returning precisely the same NSString instance every > time KVO thinks you should, then you are violating the rules and KVO > has every right to complain. > > KVO doesn't do an -isEqual: on the result of your method. It does > pointe

Re: Lion doesn't like tricky.key.paths in bindings?

2011-07-29 Thread Charles Srstka
On Jul 28, 2011, at 9:42 PM, Kyle Sluder wrote: > If you're not returning precisely the same NSString instance every > time KVO thinks you should, then you are violating the rules and KVO > has every right to complain. > > KVO doesn't do an -isEqual: on the result of your method. It does > pointe