What's with ICAImportImage?

2008-05-12 Thread Dave Hersey
Is there a way to get ICAImportImage to work correctly? Using the code in the docs, the ICAImportImageSample_Cocoa or the ICAImportImageSample_Carbon samples all gives the same results when built with the 10.5 SDK:

Re: Apple support incidents

2008-04-04 Thread Dave Hersey
I didn't see those, but there are some great deals on ProDOS and Beagle Bros. software! Even a CP/M card for a steal! ; ) On Apr 4, 2008, at 3:48 PM, Stebel Wolfram wrote: Hi all, i wondered if somebody sells it's unused apple support incidents of adc membership and just tried it on

Re: Autorelease question

2008-04-03 Thread Dave Hersey
why do you think I didn't read all of that documentation? I did but, alas, maybe I'm not smart enough and I can't tell which object is autoreleased and which one not that was in principle my initial question I doubt that it's that you're not smart enough. At the very least, you need to

Rotating a bunch of images

2008-03-31 Thread Dave Hersey
Hi, I need to rotate the contents of several image files of various types and then replace the original files. I want to preserve the type of file and as much of the data as possible (for example, multiple representations). This is data processing only; I don't need to display the images

Re: machine with null serial number?

2008-03-28 Thread Dave Hersey
On Mar 29, 2008, at 12:26 AM, Graham Cox wrote: How about using a UUID? CFUUID is very easy to use. That and the MAC address are not recommended either, at least by themselves. Same link: http://developer.apple.com/technotes/tn/tn1103.html Neither the getifaddrs nor

Re: NSMatrix

2008-03-26 Thread Dave Hersey
On Mar 26, 2008, at 11:52 AM, Matthew Miller wrote: Could some please explain in simple terms how to create a NSMatrix which distributes cells in rows based on the input of a table and takes away the cells when it is not needed. Thank you very much! P.S. I am new to cocoa so please don't

Re: NSMatrix

2008-03-26 Thread Dave Hersey
. If you want to deal with live resizing, you need to subclass as well. I think there are lots of reasons to work with an NSMatrix subclass. Why do you highly discourage it? - d On Mar 26, 2008, at 4:42 PM, Erik Buck wrote: Wow! Dave Hersey wrote a very detailed and comprehensive post

Re: uncaught breakpoint

2008-03-26 Thread Dave Hersey
Could be a lot of things. Do any of your breakpoints work? Some things that might help are to make sure you're debug format is set to DWARF in the target build prefs and Load symbols lazily is off in the Xcode Debugging prefs. And of course that you're running a debug build... - d On

Re: How do I disable this warning: local declaration of 'varname' hides instance variable

2008-03-24 Thread Dave Hersey
Speaking as a former Apple DTS engineer... Maybe you had my old office. : ) - d On Mar 24, 2008, at 3:14 AM, John C. Randolph wrote: On Mar 23, 2008, at 10:31 PM, Dave Hersey wrote: If it's really important to you, send an incident to DTS and pay them $195 for the answer. I suspect

Re: Where is it better to register with NSNotificationCenter in class?

2008-03-24 Thread Dave Hersey
I think you're seeing a debugger anomaly when stepping through things. Try logging self before and after. NSLog(@self = %p, self); - d On Mar 25, 2008, at 1:04 AM, Samvel wrote: On Mar 24, 2008, at 11:56 PM, Jens Alfke wrote: On 24 Mar '08, at 9:51 PM, Samvel wrote: I run into

Re: How do I disable this warning: local declaration of 'varname' hides instance variable

2008-03-23 Thread Dave Hersey
For example, the above could be rewritten as: - (void)setController:(id)newController { if (!controller) return; controller = [newController retain]; I think the if (!controller) check was for the passed-in value, not the instance variable, but there lies the confusion about using the

Re: iPhone/iPod Touch

2008-03-21 Thread Dave Hersey
On Mar 21, 2008, at 4:21 PM, I. Savant wrote: ... except of course for that hour a few weeks ago before Apple changed their mind. But now we can't again and they *really mean it* this time. ;-) Man... Scott's been silent since that day the iPhone maniac was wildly flipping the NDA switch

Re: How to set default value for NSTextField from program before window is displayed?

2008-03-21 Thread Dave Hersey
If the window with that field is in the controller's nib, which I think is what you're saying, then nameField will be nil until awakeFromNib is called. You need to do setup there or later, such as applicationDidFinishLoading. Your code looks fine. - d On Mar 21, 2008, at 8:51 PM, Samvel

View with sliding rearranging thumbnails

2008-03-21 Thread Dave Hersey
Hi, I'm working on a view that has a bunch of image thumbnails, say something like iPhoto, and I want to be able to grab one and move it around, rearranging (with animation) all the other thumbnails as it's moved around. This is NOT an iPhone question, but if you put your iPhone in

Re: Sync Services between Address Book and a web server

2008-03-21 Thread Dave Hersey
. Thanks again, Alex. - d On Mar 21, 2008, at 3:10 PM, Dave Hersey wrote: Thanks for the info. Alex. Right, the code in question uses the Address Book framework, and all the sync logic was worked out and has been performing well. Since this work

Re: View with sliding rearranging thumbnails

2008-03-21 Thread Dave Hersey
I need 10.4 support too. : ( - d On Mar 21, 2008, at 9:34 PM, Jamie Phelps wrote: You might have a look at the documentation for IKImageBrowserView (IKImageBrowserView Class Reference). It's Leopard only, but it might just do the trick. HTH, Jamie On Mar 21, 2008, at 8:15 PM, Dave

Re: yearly NSDraggingInfo -draggedImage question (BEWARE!)

2008-03-20 Thread Dave Hersey
Do you get anything different if you print the object as a pointer (%p)? Printing it as an int value is... weird. Try: printf(Dragged Image: %p\n, (void *)[sender draggedImage]); or NSLog(@Dragged Image: %@, [[sender draggedImage] description]); I dunno, it may still be nil, but the

Re: doubleValue (for an NSString)

2008-03-20 Thread Dave Hersey
Setting up NSScanner for this is trivial, if I'm understanding the question... double doubleValue; NSScanner *scanner = [NSScanner scannerWithString: stringToCheck]; if ([scanner scanDouble: doubleValue]) { // doubleValue has your double's value. } else

Re: sheet appears as normal window?

2008-03-20 Thread Dave Hersey
You probably forgot to connect your window controller's window outlet in Interface Builder, so [self window] is nil. If the window for the sheet is nil, you get a window instead. If it's not that, make sure you're not doing this until after awakeFromNib, so that, again, the window outlet

Re: Nested Enum Error

2008-03-20 Thread Dave Hersey
Yeah, there are problems with doing it that way. I'd do something like: typedef enum DeductionLineErrors { e_DL_NoError = 0, // no err e_DL_LineNumberExistsError = 1, // blah e_DL_WTFError = 2

Re: How to remove a fetched predicate from an ArrayController?

2008-03-19 Thread Dave Hersey
Set the filter predicate to nil to remove any predicates from the array controller. - d On Mar 20, 2008, at 12:36 AM, WiFiFun wrote: I have added filtering buttons (Like those at the top XCode's documentation window) to my bindings and core data learning application I have been working on. I

Re: What's the trick to eliminating 'halos' on buttons?

2008-03-14 Thread Dave Hersey
should need to do this and that it's almost always nonstandard behavior, especially on a control. - d On Mar 14, 2008, at 7:15 AM, RICKY SHARP wrote: On Thursday, March 13, 2008, at 11:11PM, Dave Hersey [EMAIL PROTECTED] wrote: Set the control's focus ring to none in IB. Please don't do

Re: What's the trick to eliminating 'halos' on buttons?

2008-03-13 Thread Dave Hersey
Set the control's focus ring to none in IB. - d On Mar 13, 2008, at 11:56 PM, Todd Blanchard wrote: I've got this pane with a bunch of checkboxes. When the thing comes up, the first checkbox always has a blue glow (focus rings you call em?). Anyhow, they don't suit my app. I want to

Re: newb problem- Currency Converter app problem- Can't Add ConverterController Class to Nib

2008-03-13 Thread Dave Hersey
Just a guess, but if you're using Interface Builder 3, that approach doesn't work anymore. Instead, you need to drag an Object object (it looks like a blue cube) from the Library to your nib, and then change its class to what you want using the i tab in the Inspector. If you need more

Re: performSelectorOnMainThread problem

2008-03-12 Thread Dave Hersey
You definitely should specify the colon, but I suspect this points to a bigger problem: I have imported the main AppController.h into this secondary class file. The secondary class part makes me wonder. Is this method actually defined in the object where you're calling

Re: Problem with NSDragPboard

2008-03-11 Thread Dave Hersey
The only thing I can see is that the docs say that you need to send the pasteboard the types or availableTypeFromArray: selectors before sending stringForType:, so maybe you're getting screwy log results without that. Does it change if you add a [pb types]; before the last NSLog? - d On

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Dave Hersey
Just a guess, but is the window set to Release when closed in IB? You probably want to orderOut: it, not close it. Then makeKeyAndOrderFront: will do what you want. makeKeyAndOrderFront does make the window visible if it's not, but your window has probably been released from the close so

Re: [Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread Dave Hersey
That sounds surprisingly plausible. I imagine a big speech bubble above the Apple campus that says, Well, I'm glad we got all our ducks in a row for that iPhone SDK release! Meanwhile, cute little baby ducks are running at everyone's feet, riding the elevators up and down, quacking during

Re: How do I tell if the mouse button is down, independent of view, etc.?

2008-03-08 Thread Dave Hersey
Chris, I think you'll need to put some Carbon in your Cocoa to get what you want. If you need to get that information systemwide (ie. when you're in the background too), you can use Carbon's GetCurrentButtonState() for the mouse and maybe Carbon HotKey APIs for the keypresses. You can