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
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
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
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
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
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
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
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
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
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
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 (
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
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
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
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
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
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
> 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
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
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
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
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
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
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
> 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
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,
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;
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
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
29 matches
Mail list logo