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 { ... } ... @end ~Phil On Jul 21, 2011, at 10:51 AM, Chris Tracewell wrote: > I have a private framework that is in

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 lo

32 -> 64 bit serializations, NSNumber, int, NSInteger

2011-07-19 Thread Philip Dow
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: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}

2011-07-13 Thread Philip Dow
like structure names vs ?, etc...). > 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 a

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 '{?={?=ff

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 >> ther

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 NSPersistentDo

[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 Sear

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

2011-05-23 Thread Philip Dow
to my app, though. ~Phil On May 23, 2011, at 12:38 PM, Philip Dow wrote: > 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

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 s

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

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 N

NSLayoutManager didCompleteLayout callback & NSFormFeedCharacter

2011-05-12 Thread Philip Dow
I just submitted the following bug report and wanted to post it here as well to see if anyone had a recommended workaround. NSLayoutManager layoutManager:didCompleteLayoutForTextContainer:atEnd callback is never called with atEnd flag set to YES if last character of text is NSFormFeedCharacter.

What is the maximum NSURL length?

2008-07-28 Thread Philip Dow
Hello, quick question. What is the maximum length of an utf-8 string that NSURL can handle when using +[NSURL urlWithString:]. I understand that Safari can deal with tens of thousands of characters in the url field. Would somebody be able to offer a more specific number? ~Phil _

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, 2008,

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 rep

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 th

Re: Quick look preview multipage rich text

2008-07-11 Thread Philip Dow
ay "does not display the content 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 genera

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 conte