Problem compiling a 10.5 project for 10.6

2010-08-17 Thread kentozier
Hi I have a project I need to convert to Snow Leopard, but keep getting the following error when I try to compile. File not found: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/versions/A/AE After much digging, I found a AE.framework in the

NSXMLParser choking on single quotes

2009-11-12 Thread kentozier
Hi I'm using NSXMLParser to parse XML output from Microsoft Word and am finding that if a string contains a single quote, the parser is only giving me the part of the string from the single quote onward. For example given the following string: The topic of Jim's discussion was on the yeti

Custom borderless window not getting it's shadow

2009-11-10 Thread kentozier
Hi I'm writing a custom borderless window class and am finding that the shadow doesn't appear. Here's a bare bones implementation that shows the problem. - (id) initWithSize:(NSSize) inSize origin:(NSPoint) inOrigin { NSRect winFrame = NSMakeRect(inOrigin.x, inOrigin.y, inSize.width,

NSTimer not firing

2009-08-09 Thread kentozier
Hi I'm running an NSInvocationOperation in an NSOperationQueue and set up a listener for the operation's isFinished notification. My observeValueForKeyPath method is getting called when the operation finishes, but I'm finding that when I try to create a timer inside observeValueForKeyPath,

Memory efficient way to get image metadata?

2009-08-03 Thread kentozier
Hi I wrote an image catalog application that scans files on a Windows server, extracts certain image file info (like mod date, name, width, height and color mode) and writes this info to a database. During testing, in a real environment, the app started crashing and I narrowed the problem

Re: Memory efficient way to get image metadata?

2009-08-03 Thread kentozier
Subscription: http://lists.apple.com/mailman/options/cocoa-dev/kentozier%40comcast.net This email sent to kentoz...@comcast.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Scheduling a selector when a thread completes

2009-04-29 Thread kentozier
Hi I wrote a directory scanner application that spawns 4 different threads with independent rescan intervals and need to repeat the process if and only if a thread has completed a scan. Basically, for each file type I'm watching, the process is 1. Spawn a thread to sample files of the

Setting data cell type for a specific row

2009-01-26 Thread kentozier
Hi I have a table where I want a button field in the last row of a column to contain a different button cell than all the other rows. All rows before the last contain a delete button, but in the last row, I want to change that to an add button. I create the add button when my class in

Re: Setting data cell type for a specific row

2009-01-26 Thread kentozier
I. Savant: You don't get a reference to a cell. You tell the table view (via a delegate method) what prototype cell to use for the requested col/row. See:  -[NSTableView tableView:dataCellForTableColumn:row:] I took a look at that but it really seems to complicate things. Basically, I

appleScriptWithContentsfFile wipes out Quark's Applescript dictionary

2008-09-22 Thread kentozier
Hi I wrote a Quark XTension that displays scripts in a floating palette and have found that the following wies out most of Quark's AppleScript dictionary NSAppleScript *script = [[NSAppleScript appleScriptWithContentsfFile: inPath] retain]; Anyone know why that would happen and possible ways

NSGraphicsContext restore crashes my xtension

2008-07-27 Thread kentozier
Hi I wrote a Quark XTension that dynamically generates ad placeholder images on a page and am having a problem where doing a restore on a saved NSGraphicsContext crashes after the last ad is placed. If I comment out the save/restore context, the app doesn't crash but it also doesn't render the

Re: NSGraphicsContext restore crashes my xtension

2008-07-27 Thread kentozier
-- Original message -- From: glenn andreas [EMAIL PROTECTED] You're setting a graphics context: // uncommenting the next line works fine for all ads except the last which // causes a crash after the last ad image is placed.

Re: NSGraphicsContext restore crashes my xtension

2008-07-27 Thread kentozier
-- Original message -- From: [EMAIL PROTECTED] -- Original message -- From: glenn andreas [EMAIL PROTECTED] You're setting a graphics context: // uncommenting the next line works fine for all ads except the last

NSURLConnection substitutes characters?

2008-07-12 Thread kentozier
Hi I wrote a class (PHPInvocation) that handles all the nitty gritty details of preparing NSURLRequests, NSURLConnections etc for calls to PHP scripts, but have run across this nasty bug. What's happening is that somewhere between the creation of an NSURLConnection and the target PHP script, +

Re: NSURLConnection substitutes characters?

2008-07-12 Thread kentozier
-- Original message -- From: Stefan Arentz [EMAIL PROTECTED] If you want to send Base64 encoded data in a query parameter (or post data) then you will need to 'percentage-escape' it properly. In which case a '+' needs to be translated to a '%2b'. Bingo!

Re: NSURLConnection substitutes characters?

2008-07-12 Thread kentozier
-- Original message -- From: Stefan Arentz [EMAIL PROTECTED] If you want to send Base64 encoded data in a query parameter (or post data) then you will need to 'percentage-escape' it properly. In which case a '+' needs to be translated to a '%2b'. I

Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread kentozier
Hi I'm writing my first project in Leopard and can't figure out how to accomplish the old Subclass NSObject/Generate Files/Instantiate series of steps in Interface Builder 3.1. I'm sure Interface Builder has a new way to do that but I can't find it. Any help appreciated

Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread kentozier
Perfect!. Thanks Joar -- Original message -- From: j o a r [EMAIL PROTECTED] On Jun 30, 2008, at 7:14 AM, [EMAIL PROTECTED] wrote: I'm writing my first project in Leopard and can't figure out how to accomplish the old Subclass NSObject/Generate

Determining general type of a file (image, text, sound, etc...)

2008-06-28 Thread kentozier
Hi I'm writing a KFile class that encapsulates a bunch of file operations that are spread out over several Cocoa and Carbon classes and want to have a couple of testing methods such as isImageFile, isMusicFile, isTextFile etc. I'm trying to avoid hard coding HFS types and/or file extensions