Re: Why am I getting May Not Respond warnings for Super

2011-07-21 Thread Philip Dow
NSCopying is a protocol, likewise NSCoding. Have you declared that your class implements the protocol in the header file, for example: @interface MySuperClass : NSObject NSCopying, NSCoding { ... } ... @end ~Phil On Jul 21, 2011, at 10:51 AM, Chris Tracewell wrote: I have a private

32 - 64 bit serializations, NSNumber, int, NSInteger

2011-07-19 Thread Philip Dow
into a similar decoding problem where the int values will not be correctly read as longs in the new environment, or is NSNumber taking care of things under the hood for me? ~Phil On Jul 13, 2011, at 12:47 PM, Philip Dow wrote: Brilliant. Thank you Glenn. I compiled the app for 32 bit and it read

Re: 32 - 64 bit serializations, NSNumber, int, NSInteger

2011-07-19 Thread Philip Dow
Thanks for the tips Quincey and Nick. I'll keep an eye out for the use of NSNotFound. ~Phil On Jul 19, 2011, at 2:46 PM, Quincey Morris wrote: On Jul 19, 2011, at 12:32, Nick Zitzmann wrote: The only problem I ever had with unarchiving 32-bit app archives in a 64-bit app was with longs

Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}

2011-07-13 Thread Philip Dow
I am trying to decode a 3rd party archive encoded in the old NSArchiver (not keyed) format. At a point in the decoding, I expect to find a CGRect, but when I call [coder decodeValueOfObjCType:@encode(CGRect) at:myRect] an exception is raised with the error: file inconsistency: read

Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}

2011-07-13 Thread Philip Dow
...). This, in and of itself, shouldn't make it incompatible, but a structure with two structures each with two floats doesn't match with the double-based CGRect. On Jul 13, 2011, at 12:20 PM, Philip Dow wrote: I am trying to decode a 3rd party archive encoded in the old NSArchiver

NSPersistentDocument and custom window controller

2011-06-27 Thread Philip Dow
I am exploring using a custom window controller for a core data document based application and wanted to ask those more knowledgeable than myself if there are any caveats I must consider. Following the documentation, I am overriding NSDocument's makeWindowControllers method in my

Re: NSPersistentDocument and custom window controller

2011-06-27 Thread Philip Dow
On Jun 27, 2011, at 6:17 PM, Quincey Morris wrote: On Jun 27, 2011, at 15:58, Philip Dow wrote: I am exploring using a custom window controller for a core data document based application and wanted to ask those more knowledgeable than myself if there are any caveats I must consider

[ANN] SPSearchStore: Objective-C wrapper for SearchKit

2011-06-09 Thread Philip Dow
Heya all, I wanted to share an Objective-C wrapper for the SearchKit API. To my knowledge there is no existing Obj-C wrapper for this particular API, although it seems at one time there was an effort to produce one. This particular wrapper consists of a single class which captures most of

Spotlight help returns correct results, will not show in help viewer

2011-05-23 Thread Philip Dow
I'm stumped on this one. To my knowledge I have correctly built a localized Help Book for my Mac OS application. Everything about the help book works except the spotlight search in the help menu. For example, I can open the help book, navigate it, and send users to specific pages with context

Re: NSDatePicker, selecting elements, and field editors

2011-05-20 Thread Philip Dow
On May 20, 2011, at 3:27 PM, Nick Zitzmann wrote: That's how to _set_ date picker elements, not _select_ them. Anyway, I did figure out how to do this. Apparently the only way to programmatically select a date picker element is to use private NSDatePickerCell methods, but to unselect all

Re: Scroll view within scroll view blocks scrolling

2011-05-14 Thread Philip Dow
On May 14, 2011, at 1:35 AM, William Squires wrote: On Apr 28, 2011, at 6:12 PM, Indragie Karunaratne wrote: Despite the confusing title, I'm sure this is an issue that someone else has run into before. I have a parent scroll view that houses a bunch of subviews, including an

NSToolTipAttribute not written to pasteboard?

2008-07-24 Thread Philip Dow
Howdie, I'm playing around with the NSToolTipAttribute in attributed strings and I seem to be finding that the attribute is not written to the pasteboard when I cut/paste or drag text around in an NSTextView. Is this a known issue? Checking Google I discovered that back in 2004 it was

Re: Fancy drag drop

2008-07-24 Thread Philip Dow
It's not trivial, but you want to create a transparent window and show it while simultaneously returning an empty image. Then in the draggedImage:movedTo method you can update the position of the window and depending on ui window element it is over, change the shape. ~Phil On Jul 24,

Re: Quick look preview multipage rich text -- NSPrintOperation inconsistency

2008-07-13 Thread Philip Dow
I have a filed a report, Bug ID# 6072333. ~Phil On Jul 11, 2008, at 1:02 PM, Julien Jalon wrote: On Fri, Jul 11, 2008 at 8:00 PM, Philip Dow [EMAIL PROTECTED] wrote: That's right, I realized after posting the message that I should have boiled it down to the following

Re: Quick look preview multipage rich text

2008-07-11 Thread Philip Dow
as multipage. What does it display? You should try to dump on disk the data produced in the first case and take a look at it. -- Julien On Wed, Jul 9, 2008 at 4:40 AM, Philip Dow [EMAIL PROTECTED] wrote: Hi all, I am trying to generate multipage pdf data for display in a quick look preview

Quick look preview multipage rich text

2008-07-08 Thread Philip Dow
Hi all, I am trying to generate multipage pdf data for display in a quick look preview from rich text attributed string data. Attributed strings don't know anything about pages, so it seems to me that I'll have to go through the OS printing architecture to generate the multipage pdf