Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.

2009-08-08 Thread Brian Bruinewoud
Thanks for the replies so far. Lazy loading makes sense. But what you say bellow suggests that the code in my original post is broken - or at least, potentially broken. The design comes from a beta version "iPhone SDK Development" by Bill Dudney and Chris Adamson. They use something very s

Re: [iPhone 3.0] correct way to release a UIImageView flip animation?

2009-08-08 Thread Kyle Sluder
On Aug 8, 2009, at 8:14 PM, John Michael Zorko wrote: My question -- what is the correct way to release the UIImageView's animatedImages array? I assign an NSMutableArray to it, play the animation, then set the UIImageView's animatedImages to nil. I then release the NSMutableArray and re

Re: [iPhone 3.0] UIImage startAnimating -- how to tell when it's finished?

2009-08-08 Thread Henry McGilton (Boulevardier)
On Aug 8, 2009, at 6:09 PM, John Michael Zorko wrote: Hello, all ... I load a UIImageView with an array of PNG images, and call startAnimating -- this works very well. However, I need to know when the animation is done, because I need to have a thread load the next animation. Unfortun

[iPhone 3.0] correct way to release a UIImageView flip animation?

2009-08-08 Thread John Michael Zorko
Hello, all ... I'm running a little test right now on my iPod Touch, where i'm loading a flip animation (49 PNGs), playing it and unloading it every 10 seconds. I see what appears to be a memory leak in Instruments, though -- perhaps 2K every time I play an animation. My question -- wha

Re: How to change to the smoother single-stage animation

2009-08-08 Thread Hank Heijink (Mailinglists)
I have removed both function but now my device doesn't know if it is in horizontal or vertical position. I need that information to arrange some controls according to its Orientation. The first parameter of the willAnimateRotationToInterfaceOrientation:duration: method should tell you tha

System Sound, and Audio Services [solved more] (was: NSSound play often fails)

2009-08-08 Thread Jerry Krinock
On 2009 Aug 04, at 10:32, James Walker wrote: Matt Neuburg wrote: Either load the sound from the file yourself with NSSound alloc and initWithContentsOfFile, and release it when done, or just use the auto-released sound provided for you by soundNamed: Originally my code was simpler... S

Re: [iphone] split an image

2009-08-08 Thread John C. Randolph
On Aug 4, 2009, at 12:45 PM, Dragos Ionel wrote: Hi, Is there a simple way to split an image? For example, divide it in to 2x2 = 4 pieces. Is UIImage the way to go? If you want to slice and dice an image like that, you probably want to use CGImage instead. See CGImageCreateWithImageIn

[iPhone 3.0] UIImage startAnimating -- how to tell when it's finished?

2009-08-08 Thread John Michael Zorko
Hello, all ... I load a UIImageView with an array of PNG images, and call startAnimating -- this works very well. However, I need to know when the animation is done, because I need to have a thread load the next animation. Unfortunately UIImageView doesn't implement the animationDidSto

Re: [NSObject setValue:forUndefinedKey:] no longer requires explicit KVC notifications?

2009-08-08 Thread Gabriele de Simone
On Aug 8, 2009, at 2:37 PM, Keary Suska wrote: It used to be that if you overrode -[NSObject setValue:forUndefinedKey:] your own subclass was responsible for calling -[NSObject will/didChangeValueForKey: so that bindings and observers would work as expected. That was fine, since it allowed one

***SOLVED*** Re: NSArrayController Managing / Sorting NSManagedObjects

2009-08-08 Thread Brad Gibbs
I found some sample code that addresses this: http://shanecrawford.org/2008/37/sorting-a-coredata-backed-nsarraycontroller/ On Aug 7, 2009, at 2:50 PM, Brad Gibbs wrote: Hi, I have an NSTableView that displays a set of Activity objects, which are subclasses of NSManagedObject, all of whic

Re: Giving the Root Object of an Outline View a Different Background Color.

2009-08-08 Thread Brad Gibbs
Apple has a sample app called DragNDropOutlineView that's helpful when getting comfortable with outline views. Also, Jonathan Dann has two useful outline view sample apps -- one to show sorting with Core Data and another that animates the expansion of a root object to reveal its contents (

Re: NSData Questions

2009-08-08 Thread Nick Zitzmann
On Aug 8, 2009, at 3:45 PM, Eric Hermanson wrote: 1. Is it more efficient to malloc a uint8_t array and call NSData 'init no copy', rather than pass in an array allocated with a fixed length on the stack to the init method that makes a copy of the bytes? If you need to allocate larger amou

Re: NSArrayController access between nib files

2009-08-08 Thread Quincey Morris
On Aug 8, 2009, at 13:35, Brian Carmalt wrote: I am trying to figure out how to access a NSArrayController in one nib file from another nib. I have done the NSPersistentDocument tutorial and I am trying to apply what I have learned. In general, it's not a great idea. It just makes the two n

NSData Questions

2009-08-08 Thread Eric Hermanson
1. Is it more efficient to malloc a uint8_t array and call NSData 'init no copy', rather than pass in an array allocated with a fixed length on the stack to the init method that makes a copy of the bytes? 2. Does NSMutableData's implementation simply just cast it's internal bytes to const

Re: Universal binary with different deployment targets - how?

2009-08-08 Thread Greg Guerin
Roni Music wrote: it's a compile time choice compare to compiling for ppc or intel processor Instead of comparing to completely different archs like ppc vs. intel, compare it to slightly different archs like ppc vs ppc7400 or ppc7450. Or consider the even older PPC variants: 604, 604e. T

NSArrayController access between nib files

2009-08-08 Thread Brian Carmalt
Hello everyone, I am trying to figure out how to access a NSArrayController in one nib file from another nib. I have done the NSPersistentDocument tutorial and I am trying to apply what I have learned. So in my MyDocument.nib there is a array controller I would like to bind to a NSComboBo

Re: Universal binary with different deployment targets - how?

2009-08-08 Thread Roni Music
So one slice is for the older arm6 processor and the other slice for the newer arm7 processor. My app doesn't require any OS 3 features and I still want it to run on OS 2 (in my case OS 2.2.1). I'm using SDK 3, I set the "iPhone OS Deployment Target" to iPhone OS 2.2.1 which then sets "MinimumOS

Re: Intel Mac prefpane error

2009-08-08 Thread Trygve Inda
> What OS are those few people running? > > Kiel :-) > "If video games affected us as kids, we'd all be running around in > darkened rooms, munching on magic pills and listening to repetitive > electronic music." > > On 08/08/2009, at 7:47 AM, Trygve Inda wrote: > >> Although my app is a univers

Re: Universal binary with different deployment targets - how?

2009-08-08 Thread Dave Carrigan
On Aug 8, 2009, at 11:34 AM, Greg Guerin wrote: If nothing else works, you may have to code a runtime choice between different code modules compiled for arm6 or arm7. In short, simulate fat binaries manually by loading the appropriate module after the main code determines the current runti

Re: Universal binary with different deployment targets - how?

2009-08-08 Thread Greg Guerin
Roni Music wrote: So one slice is for the older arm6 processor and the other slice for the newer arm7 processor. My app doesn't require any OS 3 features and I still want it to run on OS 2 (in my case OS 2.2.1). I'm using SDK 3, I set the "iPhone OS Deployment Target" to iPhone OS 2.2.1 w

Re: Giving the Root Object of an Outline View a Different Background Color.

2009-08-08 Thread Quincey Morris
On Aug 8, 2009, at 08:30, Joshua Garnham wrote: I am looking for some code to make the root object's in an outline view have a different background color to the other rows. I am pretty sure I need to sub-class the outline view but I don't know what code to add to the sub-class to do what I wa

Re: Outline View DnD

2009-08-08 Thread Nathan Vander Wilt
On Aug 7, 2009, at 6:56 AM, bryscomat wrote: ... Now the dilemma comes when I want to get the drag and drop to work in a specific way. I want the playlists to be able to be dragged and placed in any order, but not above the separator. I have achieved this using the delegate method validateDr

Giving the Root Object of an Outline View a Different Background Color.

2009-08-08 Thread Joshua Garnham
I am looking for some code to make the root object's in an outline view have a different background color to the other rows. I am pretty sure I need to sub-class the outline view but I don't know what code to add to the sub-class to do what I want it to do (which is what I described above). Coul

Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.

2009-08-08 Thread Luke the Hiesterman
On Aug 8, 2009, at 1:23 AM, Brian Bruinewoud wrote: Why doesn't initWithNibName create and bind all the IBOutlets before it returns? Is the view guaranteed to be visible after pushViewController returns? Or is it still animating on another thread? Or is the request to display the view merely

Re: Core Data completely unable to find the source object model for migration

2009-08-08 Thread Matteo Manferdini
> if you look at the entity > descriptions you'll see that the Event entity description in the calendar > store includes a versionHashModifier and the imported one does not. >  Specifying the same version hash modifier in your imported version of the > Event entity should fix that. Now it works! T

Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.

2009-08-08 Thread Kyle Sluder
On Aug 8, 2009, at 1:23 AM, Brian Bruinewoud wrote: Why doesn't initWithNibName create and bind all the IBOutlets before it returns? Because it's good to be lazy. I'm not an iPhone developer, but I'm willing to wager that the nib isn't actually loaded until the view itself is requested,

[iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.

2009-08-08 Thread Brian Bruinewoud
Hi, I'm a little confused about how this code works: MyController *myController = [[ myController alloc ] initWithNibName: @"myView" bundle: nil ]; [[ self navigationController ] pushViewController: myController animated: YES ]; myController.myProperty = itsValue;

Re: How to change to the smoother single-stage animation

2009-08-08 Thread Agha Khan
Dear Hank: I have removed both function but now my device doesn't know if it is in horizontal or vertical position. I need that information to arrange some controls according to its Orientation. Thanks. Agha On Aug 6, 2009, at 10:58 AM, Hank Heijink (Mailinglists) wrote: This is new in iP

Re: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-08 Thread Ken Thomases
On Aug 6, 2009, at 7:03 PM, Dimcho Balev wrote: I have a trouble with a piece of code which behaves differently on Tiger (Mactel) in comparison to Leopard. It is pretty simple case: our cocoa app is interested in cmd+key shortcuts and we have overriden the keyDown and keyUp methods in our NSWi