Re: Outline View not retaining objects it uses. Why?

2008-07-20 Thread Paul Sargent
On 20 Jul 2008, at 09:02, Ken Thomases wrote: On Jul 19, 2008, at 7:52 PM, Paul Sargent wrote: While you're right I would return different objects if I was called twice, I'm not. As I understand it the Outline View will only ask for objects when it knows the data has changed (e.g. after

Outline View not retaining objects it uses. Why?

2008-07-19 Thread Paul Sargent
Hi all, I've obviously not got the right mental model for something and I'm wondering why. It should be fairly obvious that this is quite early on in my Cocoa Career. I've got an outline view that has a data source. The data source has routines that look like this: -(id)

Re: Outline View not retaining objects it uses. Why?

2008-07-19 Thread Paul Sargent
On 19 Jul 2008, at 23:18, Quincey Morris wrote: On Jul 19, 2008, at 14:35, Paul Sargent wrote: This works fine the first time the view is populated, but when it's refreshed it just calls the second method with the pointers to the dictionaries I return first time round. Trouble is they've

Re: Outline View not retaining objects it uses. Why?

2008-07-19 Thread Paul Sargent
On 19 Jul 2008, at 22:49, Andy Lee wrote: On Jul 19, 2008, at 5:35 PM, Paul Sargent wrote: This works fine the first time the view is populated, but when it's refreshed it just calls the second method with the pointers to the dictionaries I return first time round. Trouble is they've been

Re: Bit maps from raw camera files

2008-07-07 Thread Paul Sargent
Remember that some raw files contain multiple resoltions (i.e. a thumbnail and the main image), so you may not always want the first one. On 6 Jul 2008, at 04:29, James Merkel wrote: Will look into CGImageRef using ImageIO. However, I found that if I use: imageRepsWithContentsOfFile: rather

Re: [MODERATOR] Re: sphere in openGL ES ++IRC

2008-06-26 Thread Paul Sargent
On Wed, Jun 25, 2008 at 11:20 PM, Scott Anguish [EMAIL PROTECTED] wrote: On Jun 25, 2008, at 4:47 PM, Simon Fleming wrote: Dear All, Can anyone help me create a sphere in openGL ES for the iphone? NO they can't. The iPhone SDK is covered by a non-disclosure agreement. You can't talk

Re: Garbage collector vs variable lifetime

2008-06-08 Thread Paul Sargent
On 8 Jun 2008, at 01:23, Bill Bumgarner wrote: One of the tenets of GCC is that *it controls the layout of the stack always* and this is done quite explicitly because of performance. I think this is the crucial point when considering how any GC will work with gcc. If gcc controls the

Re: Main window disappears. Sometimes.

2008-06-02 Thread Paul Sargent
El 02/06/2008, a las 10:45, Michael Vannorsdel escribió: This will happen if the window is deallocated. It's probably getting cleaned up by garbage collection. On 2 Jun 2008, at 10:05, Francis Perea wrote: I've also supposed it was happening that, and I've tried to correct it by

Re: Leopard (10.5+): Any Upper-Level (Cocoa) access to Mail?

2008-06-02 Thread Paul Sargent
On 2 Jun 2008, at 16:45, [EMAIL PROTECTED] wrote: I would like to talk to Mail.app / ditto for (NDA - aware) iPhone platform. Ric. You're probably looking at using the scripting bridge/AppleScript to talk to Mail.app. I know nothing about it, but it's where I'd start looking. Obviously

Re: Main window disappears. Sometimes.

2008-06-02 Thread Paul Sargent
On 2 Jun 2008, at 18:50, Bill Bumgarner wrote: While learning the retain/release paradigm is certainly useful, it is considerably more complex than GC. It is also unnecessary while learning Cocoa. Specifically, GC is intended to be a production quality solution that you can use in your

Re: Main window disappears. Sometimes.

2008-06-02 Thread Paul Sargent
On 2 Jun 2008, at 12:16, Francis Perea wrote: Hi Paul. I've disabled GC as Michael and you propose and the application it's working right now. I've had to retain both properties of the model class (generator) and the instance of that class in the controller class

Re: Dealing with NSError outside of the Responder chain

2008-05-27 Thread Paul Sargent
On 27 May 2008, at 21:24, Adam R. Maxwell wrote: In general, I think you're supposed to add NSError** parameters to pass it back up to some class that knows how to present an error, but I find that's not always practical, and it tends to be messy. In such cases I typically take the easy

Re: File's Owner

2008-05-24 Thread Paul Sargent
On 24 May 2008, at 05:39, Andreas Mayer wrote: I thought, maybe a picture would help: http://www.harmless.de/images/other/files_owner.png Exactly the picture I was about to draw. Johnny Lundy wrote: Saying it connects the nib to an object outside the nib sounds good, but what object is

Breakpoint for unknown selector

2008-05-23 Thread Paul Sargent
In the same way that there are that there are breakpoints that will catch all the Objective C exceptions that are thrown... Is there a good place to set a breakpoint to catch selectors that aren't recognised by the receiving object? I want to get in and have a good look around when it

Re: Gaussian blur with core image, using CPU or GPU?

2008-05-23 Thread Paul Sargent
Just FYI, Core Image is normally dealt with n the Quartz list rather than here, but not to worry. On 22 May 2008, at 22:36, Jordan Woehr wrote: Does this mean that it is not possible to write a bilateral filter which does the computations on the GPU? Filters of variable kernel size are

Re: Delegates

2008-05-19 Thread Paul Sargent
On 19 May 2008, at 17:22, john darnell wrote: As far as I can tell, it is kind of like a virtual function (virtual because I, the programmer, am expected to flesh it out) that resembles an event attached to a given class. You're in the right ball park. The bit you're missing is that with

Re: Delegates

2008-05-19 Thread Paul Sargent
On 19 May 2008, at 18:01, I. Savant wrote: On Mon, May 19, 2008 at 12:52 PM, Michael Vannorsdel [EMAIL PROTECTED] wrote: Delegates act like observers. Well, no, not really. I think that was 'observers', not 'Observers'. (i.e. not in the Cocoa/KVO sense) Sometimes wonder if we're going

Re: Bypassing Interface Builder

2008-05-15 Thread Paul Sargent
On 15 May 2008, at 17:40, Johnny Lundy wrote: but I am puzzled as to how my new class got instantiated. Here's what I did: 1. Create the class, the .h and .m files. 2. Code the ivars, their @property directives, and their @synthesize directives. 3. Write 2 instance methods plus the

Re: NSApplicationMain Main NIB File

2008-05-09 Thread Paul Sargent
On 9 May 2008, at 10:10, Simon Wolf wrote: I'm going to apologise here in my first contribution to this list for the potential stupidity of my questions. I'm a VB developer who has been a Mac user for several years but I'm only now starting to dip my toe into XCode and I think that I'm

Re: Threading - How its done?

2008-05-09 Thread Paul Sargent
Sorry, long non-cocoa post, but maybe there some useful info for someone. On 7 May 2008, at 18:33, Army Research Lab wrote: Pay particular attention to the section titled HDL and programming languages. Chip designers have had to contend with these problems for years, and developed

Re: How to adopt a superclass's protocol?

2008-04-29 Thread Paul Sargent
On 29 Apr 2008, at 04:22, K. Darcy Otto wrote: First, I still get the warning that the superclass may not respond to the method (and to be sure, it is only implemented in the subclass, but the superclass calls it after a conformsToProtocol: check). Sounds like the way things a decomposed

Obj-C idioms for list based tasks

2008-04-07 Thread Paul Sargent
Coming from other object based languages I'm aware that each language can have it's own idioms for common tasks. In particular coming from doing a lot of python, I'm finding myself wanting to do a few things with NSArrays that I would do quite easily with python lists. Can anybody suggest a good

Re: Python/Ruby for Cocoa (was: Simple question)

2008-03-17 Thread Paul Sargent
On 17 Mar 2008, at 17:46, Hamish Allan wrote: If you're cutting your programming teeth on Cocoa, you might find that Python or Ruby is gentler. I'm not sure I agree. Two problems for me. * Cocoa isn't a seamless fit with either python or ruby, so there are little corner cases around that