Re: NSFileWrapper serializedRepresentation bloat?

2011-01-10 Thread Matt Gough
Not sure its related, but I have noticed that using Finder nowadays to create an alias of a plain folder results in a 1MB alias file. Seems its also stashing away a copy of the plain folder icon. (Actually it is stashing two copies, one in the resource fork for compatibility and one in the data

Initializing a view controller...

2011-01-10 Thread Phil Hystad
Is there a proper way to initialize a view controller. So far, I have been doing this in the application delegate by calling calling an initialize method ( i.e. [viewController initialize]) in application:didFinishLaunchingWithOptions: method (prior to the view being added to the window and th

Re: Initializing a view controller...

2011-01-10 Thread Fritz Anderson
On 10 Jan 2011, at 9:17 AM, Phil Hystad wrote: > Is there a proper way to initialize a view controller. So far, I have been > doing this in the application delegate by calling calling an initialize > method ( i.e. [viewController initialize]) in > application:didFinishLaunchingWithOptions: met

Re: Initializing a view controller...

2011-01-10 Thread Andreas Grosam
On Jan 10, 2011, at 4:17 PM, Phil Hystad wrote: > Is there a proper way to initialize a view controller. So far, I have been > doing this in the application delegate by calling calling an initialize > method ( i.e. [viewController initialize]) in > application:didFinishLaunchingWithOptions: m

UIDatePicker displays incorrect day in UIDatePickerDateAndTime mode for zones 12+ hours ahead of defaultZone

2011-01-10 Thread Steve Mykytyn
UIDatePicker (4.2.1) shows differing dates for the modes UIDatePickerDate (correct), and UIDatePickerDateAndTime (incorrect) when the timezone you assign to the UIDatePicker is - more than 12 hours ahead (east) of the systemTimeZone of the iPhone. For example, device system time

Re: UIDatePicker displays incorrect day in UIDatePickerDateAndTime mode for zones 12+ hours ahead of defaultZone

2011-01-10 Thread Matt Neuburg
On Mon, 10 Jan 2011 10:12:15 -0800, Steve Mykytyn said: >UIDatePicker (4.2.1) shows differing dates for the modes > > UIDatePickerDate (correct), and > > UIDatePickerDateAndTime (incorrect) > >when the timezone you assign to the UIDatePicker is > > - more than 12 hours ahead (east) of the

Re: UIDatePicker displays incorrect day in UIDatePickerDateAndTime mode for zones 12+ hours ahead of defaultZone

2011-01-10 Thread Laurent Daudelin
On Jan 10, 2011, at 12:13, Matt Neuburg wrote: > On Mon, 10 Jan 2011 10:12:15 -0800, Steve Mykytyn > said: >> UIDatePicker (4.2.1) shows differing dates for the modes >> >> UIDatePickerDate (correct), and >> >> UIDatePickerDateAndTime (incorrect) >> >> when the timezone you assign to the U

Re: Custom path animation for CAShapeLayer

2011-01-10 Thread Matt Neuburg
On Sat, 08 Jan 2011 00:07:17 + (GMT), Kenneth Baxter said: > >Hi, I'm trying to use a CAShapeLayer for some paths in my application. For the >most part this works fine, but in some circumstances the animation from one >path to another looks really strange during the animation. > >I would be

Re: UIDatePicker displays incorrect day in UIDatePickerDateAndTime mode for zones 12+ hours ahead of defaultZone

2011-01-10 Thread Nick Zitzmann
On Jan 10, 2011, at 1:21 PM, Laurent Daudelin wrote: > On Jan 10, 2011, at 12:13, Matt Neuburg wrote: > >> I'd say submit a bug, though I don't see how that's likely to help (all my >> bugs are either open or archived as duplicates, but closed - i.e. fixed - >> seems to be an unknown concept).

GCD cancel handler invocation

2011-01-10 Thread Jonathon Kuo
I set up a source handler on a TCP socket like this: dispatch_source_t newsrc = dispatch_source_create(DISPATCH_SOURCE_TYPE_READ,sockfd,0,globalQueue); It works well, and when a client process closes his socket my cancel_handler gets called, I clean up, and life is good. But if I do a close

Re: GCD cancel handler invocation

2011-01-10 Thread Dave Zarzycki
On Jan 10, 2011, at 2:06 PM, Jonathon Kuo wrote: > I set up a source handler on a TCP socket like this: >dispatch_source_t newsrc = > dispatch_source_create(DISPATCH_SOURCE_TYPE_READ,sockfd,0,globalQueue); > > It works well, and when a client process closes his socket my cancel_handler > g

Re: GCD cancel handler invocation

2011-01-10 Thread Ken Thomases
On Jan 10, 2011, at 4:20 PM, Dave Zarzycki wrote: > On Jan 10, 2011, at 2:06 PM, Jonathon Kuo wrote: > >> I set up a source handler on a TCP socket like this: >> dispatch_source_t newsrc = >> dispatch_source_create(DISPATCH_SOURCE_TYPE_READ,sockfd,0,globalQueue); >> >> It works well, and whe

Re: GCD cancel handler invocation

2011-01-10 Thread Jonathon Kuo
On Jan 10, 2011, at 2:58 PM, Ken Thomases wrote: > On Jan 10, 2011, at 4:20 PM, Dave Zarzycki wrote: > >> On Jan 10, 2011, at 2:06 PM, Jonathon Kuo wrote: >> >>> I set up a source handler on a TCP socket like this: >>> dispatch_source_t newsrc = >>> dispatch_source_create(DISPATCH_SOURCE_TYPE

Re: GCD cancel handler invocation

2011-01-10 Thread Dave Zarzycki
On Jan 10, 2011, at 3:04 PM, Jonathon Kuo wrote: > > On Jan 10, 2011, at 2:58 PM, Ken Thomases wrote: > >> On Jan 10, 2011, at 4:20 PM, Dave Zarzycki wrote: >> >>> On Jan 10, 2011, at 2:06 PM, Jonathon Kuo wrote: >>> I set up a source handler on a TCP socket like this: dispatch_sour

Re: Custom path animation for CAShapeLayer

2011-01-10 Thread David Duncan
On Jan 7, 2011, at 4:07 PM, Kenneth Baxter wrote: > Hi, I'm trying to use a CAShapeLayer for some paths in my application. For > the most part this works fine, but in some circumstances the animation from > one path to another looks really strange during the animation. Core Animation's path ani

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-10 Thread Scott Ribe
On Jan 8, 2011, at 4:46 PM, eveningnick eveningnick wrote: > As far as i understand, this "drag to dock" issue is basically sending > "odoc" apple event as well? > Are there any possible pitfalls? Maybe, I don't know. I haven't done this, just thought about it, so I don't know what other issues

Re: Initializing a view controller...

2011-01-10 Thread Phil Hystad
Andreas: Thanks for the information. Now, I should kick myself for picking the name initialize but then maybe I should complain about Apple picking all the best names for methods. I think I have used the -viewDidLoad method before. phil On Jan 10, 2011, at 9:58 AM, Andreas Grosam wrote: >

Re: Initializing a view controller...

2011-01-10 Thread Phil Hystad
Fritz... Thanks for the pointers to the documentation. I was going to get to reading it if I struck out here. I am really not lazy, just old. phil On Jan 10, 2011, at 8:42 AM, Fritz Anderson wrote: > On 10 Jan 2011, at 9:17 AM, Phil Hystad wrote: > >> Is there a proper way to initialize a v

document architecture question

2011-01-10 Thread Shane
Hi all, I have an application that I initially built based on the document architecture (sort of the default setup from XCode). And now that I have my application working, when I open up several documents and run operations from the main menu or the toolbar in say … the second document, I find tha

Re: document architecture question

2011-01-10 Thread Jerry Krinock
I don't think there is any common mistake in using the document architecture that would cause the weird problem you describe. Therefore… On 2011 Jan 10, at 19:01, Shane wrote: > when I … run operations from the main menu or the toolbar To debug complicated problems, it is usually best, if you

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-10 Thread John Bartleson
Thanks for your replies. I'm hoping that the conclusion will help others who are confused by the existing documentation of MM in NSUndoManager. So here's what I'm doing: My reference-counted, document-based app uses a table view. The table view supports sorting by clicking in the header. The

Re: document architecture question

2011-01-10 Thread Graham Cox
On 11/01/2011, at 2:01 PM, Shane wrote: > My main app controller inherits from NSWindowController What does this mean? This sounds all sorts of wrong. First off, most apps don't have an 'app controller', though they do very often have an app delegate. Typically that's just an object, not an

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-10 Thread Graham Cox
My first thought, before I go further, is that to undo a sort, you are doing things way too complicated. You only need to pass the sort descriptors to the undo manager, not a copy of the data. Presumably adding and removing items in the data itself is also undoable, so at any time the data on wh

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-10 Thread Jerry Krinock
On 2011 Jan 10, at 21:39, Graham Cox wrote: > As suggested, to undo a sort, pass the old descriptors to the undo manager > and when undo is invoked, it restores the old descriptors and once again > invalidates the cache. But that assumes that the data was sorted with some old descriptors to be

Re: Custom path animation for CAShapeLayer

2011-01-10 Thread Kenneth Baxter
Thanks for the feedback David. I'll try the keyframe approach. On 11 Jan, 2011,at 09:24 AM, David Duncan wrote: The closest thing you could do here is use a Keyframe animation, but I'm not certain this could be done cleanly or without using lots of intermediate paths for even short sequences

Base SDK 10.6 deployment target 10.5 - symbol not found

2011-01-10 Thread Kenneth Baxter
Hi, I have a project I'm working on which needs to run on 10.5 and 10.6. I have various things enabled or disabled using: if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5) ... but I also have some places in my code where I want to use a CAShapeLayer subclass in 10.6 and an alternat