Re: File Extensions Problem

2008-08-27 Thread R.L. Grigg
On Aug 27, 2008, at 6:44 PM, Phil wrote: but, you want to make sure that your design doesn't *depend* on an implementation detail that's not specified in the contract. A QuickTime programmer here saw this comment and had a chuckle... ;-) Russ ___

Re: File Extensions Problem

2008-08-27 Thread R.L. Grigg
On Aug 27, 2008, at 12:19 PM, Ken Thomases wrote: On Aug 27, 2008, at 1:50 PM, R.L. Grigg wrote: This is interesting. Correct me if I'm wrong but as a newb what I'm getting from all this is if I design my code around implementation specifics of frameworks or even the language

Re: File Extensions Problem

2008-08-27 Thread R.L. Grigg
On Aug 22, 2008, at 4:24 PM, Thomas Engelmeier wrote: Am 22.08.2008 um 17:23 schrieb Michael Ash: On Fri, Aug 22, 2008 at 6:23 AM, Graham Cox <[EMAIL PROTECTED]> wrote: safe to delete items in the array at or higher than the current index. By the definition of an array, removing an item onl

Re: Modifying TextEdit.app

2008-08-21 Thread R.L. Grigg
On Aug 21, 2008, at 11:18 AM, Andy Lee wrote: On Aug 21, 2008, at 1:55 PM, R.L. Grigg wrote: Yes, that's a cool feature. But if I have three versions of AppController.m up at once, it would be great to be reminded -- at a glance -- which one is which, especially since I get so

Re: Modifying TextEdit.app

2008-08-21 Thread R.L. Grigg
On Aug 20, 2008, at 10:22 AM, Sherm Pendley wrote: On Wed, Aug 20, 2008 at 12:13 PM, R.L. Grigg <[EMAIL PROTECTED]> wrote: Now I want to modify TextEdit so I can display the filenames full path in the title bar of the document window instead of just the filename.ext (because somet

Modifying TextEdit.app

2008-08-20 Thread R.L. Grigg
Im more or less a Cocoa newb and building and modifying the TextEdit example has been very helpful. I ve modified it so it can do some simple things like having adjustable margins instead of the fixed 1" margins, etc. So far so good. Now I want to modify TextEdit so I can display the filena

Re: Why use NSObjectController?

2008-08-11 Thread R.L. Grigg
On Aug 11, 2008, at 8:52 AM, Sean McBride wrote: But it seems you can't send commitEditing to a textfield. Why? If this was supported, wouldn't it greatly simplify things, meaning no need to have a NSController subclass, etc.? This is what confuses alot of newbs like me. Not arguing again

Re: Repositioning a content view w/in a window

2008-07-29 Thread R.L. Grigg
On Jul 28, 2008, at 11:48 PM, Jonathan Hess wrote: On Jul 28, 2008, at 3:29 PM, R.L. Grigg wrote: On Jul 26, 2008, at 3:15 AM, Michael Ash wrote: On Fri, Jul 25, 2008 at 11:08 PM, Henry McGilton (Starbase) <[EMAIL PROTECTED]> wrote: On Jul 25, 2008, at 6:50 PM, Michael Ash wrote: I

Re: Repositioning a content view w/in a window

2008-07-28 Thread R.L. Grigg
On Jul 28, 2008, at 3:54 PM, Erik Buck wrote: Is something like this a decent Cocoa approach: // create the window myWindow = [[NSWindow alloc] initWithContentRect: ... ]; // insert the existing matrix as it's content view [myWindow setContentView:myMatrix]; // alter the position

Re: Repositioning a content view w/in a window

2008-07-28 Thread R.L. Grigg
On Jul 26, 2008, at 3:15 AM, Michael Ash wrote: On Fri, Jul 25, 2008 at 11:08 PM, Henry McGilton (Starbase) <[EMAIL PROTECTED]> wrote: On Jul 25, 2008, at 6:50 PM, Michael Ash wrote: In fact I would go so far as to say that if you ever use -setContentView:, you are very probably doing it wro

Re: Repositioning a content view w/in a window

2008-07-25 Thread R.L. Grigg
ut your content within a *subview* of that content view, then position it as necessary. Cheers, Andrew On Jul 25, 2008, at 6:08 PM, R.L. Grigg wrote: I've created a NSWindow and set a content view. That displays fine, but I need to be able to fine tune the position of the conte

Repositioning a content view w/in a window

2008-07-25 Thread R.L. Grigg
I've created a NSWindow and set a content view. That displays fine, but I need to be able to fine tune the position of the content view within the window. In the docs for NSWindow -setContentView it says: "You can modify the content view’s coordinate system through its bounds rectangle, bu

D.O. [NSPortCoder sendBeforeTime:sendReplyPort:] timed out

2008-05-22 Thread R.L. Grigg
I have a Cocoa DO server and a client that connects to it. When the client orderly exits with [server removeMessageClient:self] the client can reconnect and everything just works. But if the client crashes and then tries to reconnect to the server, the server somehow refuses the request:

Re: Passing argument with different width due to prototype: warning

2008-05-13 Thread R.L. Grigg
On May 13, 2008, at 6:41 PM, Christopher Nebel wrote: On May 13, 2008, at 6:10 PM, R.L. Grigg wrote: Im using Xcode 3.0 and building a Foundation Tool (debug, PPC). The base SDK path is $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk and Ive included Foundation.framework in the project under

Re: Passing argument with different width due to prototype: warning

2008-05-13 Thread R.L. Grigg
On May 13, 2008, at 6:27 PM, Jack Repenning wrote: On May 13, 2008, at 6:10 PM, R.L. Grigg wrote: NSSocketPort *socketPort=[[NSSocketPort alloc] initWithTCPPort:1234]; . . . warning: passing argument 1 of 'initWithTCPPort:' with different width due to prototype I checked the NSP

Passing argument with different width due to prototype: warning

2008-05-13 Thread R.L. Grigg
Im using Xcode 3.0 and building a Foundation Tool (debug, PPC). The base SDK path is $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk and Ive included Foundation.framework in the project under "External Frameworks and Libraries". There is a line of my code that is giving me a warning I cant' douse: #

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
! Thanks, I learned a lot! Russ On Mar 4, 2008, at 12:59 PM, Jens Alfke wrote: On 4 Mar '08, at 12:02 PM, R.L. Grigg wrote: Mike, yes that is something we tried but it seems to have no effect on the blurring. You have to set the interpolation at the moment the image is being drawn

Re: NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
Mar 2008, at 19:13, R.L. Grigg wrote: I have a series of tiny (32x32) PGM image astronomical IR data in memory that I display on screen zoomed up to 640x640. Right now Im using a NSImageView and setImageScaling:NSScaleToFit. This works but some sort of gaussian blur gets applied to the image

NSImageView setImageScaling:NSScaleToFit blurs image

2008-03-04 Thread R.L. Grigg
I have a series of tiny (32x32) PGM image astronomical IR data in memory that I display on screen zoomed up to 640x640. Right now Im using a NSImageView and setImageScaling:NSScaleToFit. This works but some sort of gaussian blur gets applied to the image ruining the analysis. Is there a s