Re: Forcing NSImage to cache images at certain sizes

2010-05-22 Thread B.J. Buchalter
On May 21, 2010, at 10:10 PM, Ken Ferry wrote: Hi BJ, On Fri, May 21, 2010 at 2:44 PM, B.J. Buchalter wrote: I read the NSImage and Cocoa drawing guide docs, which tends to indicate that calling drawInRect:fromRect:operation:fraction: on an NSImage will cause it to create a cached image r

getting file time stamp from a NTFS volume

2010-05-22 Thread Angelo Chen
Hi, I use following code to get file creation time stamp, it works with FAT32, but seems returning wrong date if the file is in a NTFS volume, any idea? Thanks, Angelo NSFileManager *fm= [NSFileManager defaultManager];NSDictionary *fileAttributes = [fm fileAttributesAtPath:path traverseLink:YES];

Re: Compatibility of Data iPhone / Mac

2010-05-22 Thread Bleicher Eiko
Thanks, I'll roll my own encoding, then. I should get much less overhead during normal operation then anyway - which could matter in my application. Eiko Am 22.05.2010 um 01:41 schrieb Kyle Sluder: > On Fri, May 21, 2010 at 4:35 PM, Eiko Bleicher wrote: >> When transferring data between Mac a

getting file creation date from NTFS

2010-05-22 Thread Angelo Chen
Hi, I'd like to get creation date of a file, here are the codes: NSDictionary *fileAttributes = [fileManager fileAttributesAtPath:path traverseLink:YES];NSLog(@"Dict %@", fileAttributes); This works if the file came from FAT or Mac OS X, but if it is in a NTFS volume, creation date is alw

Re: getting file creation date from NTFS

2010-05-22 Thread Hank Heijink (Mailinglists)
On May 22, 2010, at 11:33 AM, Angelo Chen wrote: > Hi, > I'd like to get creation date of a file, here are the codes: > NSDictionary *fileAttributes = [fileManager fileAttributesAtPath:path > traverseLink:YES]; NSLog(@"Dict %@", fileAttributes); > This works if the file came from FAT or Mac

core data, undo and redo

2010-05-22 Thread Martin Hewitson
Dear list, I'm trying to understand what happens regarding undo/redo when an item (NSManagedObject) is removed from a NSTreeController. In particular I have an NSManagedObject subclass which has properties which are not part of the core data model, but are instead (in some sense) transient. For

CATiledLayer Memory Usage

2010-05-22 Thread Milen Dzhumerov
Hi all, I've been writing some code that uses CATiledLayer and noticed that the memory usage increased quite a bit - by a factor of 2, on average. Some numbers that I've collected: Normally Sized Window - NS: 10mb; CA: 18.5mb Maximized Window: - NS: 23mb; CA: 45.7mb I tried playing with the t

Re: core data, undo and redo

2010-05-22 Thread Jerry Krinock
On 2010 May 22, at 09:36, Martin Hewitson wrote: > In particular I have an NSManagedObject subclass which has properties which > are not part of the core data model, but are instead (in some sense) > transient. I believe you're referring to what I'd call these "regular instance variables". >

Re: NSArrayController Undo

2010-05-22 Thread Richard Somers
On May 14, 2010, at 10:25 AM, Quincey Morris wrote: If I understand you correctly, you're on the right track -- you want to bind the array controller's selection indexes to your data model's selection property. As you noted this is easy to implement but unfortunately it does not work. The

Re: core data, undo and redo

2010-05-22 Thread Martin Hewitson
Thanks, Jerry. I was trying to let core data do its thing, but I was getting errors associated with the regular instance variables of the managed objects after an undo, so I started down this road of trying to somehow handle myself the releasing and re-instantiating of the instance variables. Pr

Re: getting file creation date from NTFS

2010-05-22 Thread Ken Thomases
On May 22, 2010, at 10:33 AM, Angelo Chen wrote: > I'd like to get creation date of a file, here are the codes: Since there seems to be a bug with Cocoa (that you should file at ), you may wish to try stat(2) or perhaps FSGetCatalogInfo(). For stat(2), if you're tar

Object Ownership

2010-05-22 Thread Michael Jackson
Hi all, First day with Cocoa, so please excuse the basic newbness of this question. ;) I've read through the documentation about object ownership and disposal and just wanted to make sure I'm doing everything correctly in the following method. - (NSURL *)makeURL:(NSString *)aURLString {

Re: Object Ownership

2010-05-22 Thread Dave Carrigan
On May 22, 2010, at 8:18 AM, Michael Jackson wrote: > Hi all, > > First day with Cocoa, so please excuse the basic newbness of this > question. ;) I've read through the documentation about object > ownership and disposal and just wanted to make sure I'm doing > everything correctly in the follow

Re: getting file creation date from NTFS

2010-05-22 Thread Paul Sanders
> Also be aware that not all file systems support the notion of > creation dates of their objects. I don't know off-hand if > NTFS does. It does. Paul Sanders. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: core data, undo and redo - follow-up question

2010-05-22 Thread Martin Hewitson
Actually, I remembered what the other problem was that 'lead me down the wrong path'. I'm observing one of the properties of the NSManagedObject, so before I remove it from the tree-controller, I stop observing the property. Now if I undo the removal, I need a place to set up the observing again

Re: core data, undo and redo - follow-up question

2010-05-22 Thread Kyle Sluder
On Sat, May 22, 2010 at 10:20 AM, Martin Hewitson wrote: > Actually, I remembered what the other problem was that 'lead me down the > wrong path'. I'm observing one of the properties of the NSManagedObject, so > before I remove it from the tree-controller, I stop observing the property. > Now i

[Moderator] Behavior on the list and off.

2010-05-22 Thread Scott Anguish
I shouldn’t have to post this. List users are expected to behave in a professional manner. This is not the place for personal arguments. Period. Doing so will get you moderated, and then unsubbed. Attempting to bypass that will result in further action. If others assist, they’ll also be subjec

Re: core data, undo and redo - follow-up question

2010-05-22 Thread Martin Hewitson
On May 22, 2010, at 7:25 PM, Kyle Sluder wrote: > On Sat, May 22, 2010 at 10:20 AM, Martin Hewitson > wrote: >> Actually, I remembered what the other problem was that 'lead me down the >> wrong path'. I'm observing one of the properties of the NSManagedObject, so >> before I remove it from the

Re: core data, undo and redo - follow-up question

2010-05-22 Thread Kyle Sluder
Oops, forgot to copy the list. --Kyle Sluder Begin forwarded message: From: Kyle Sluder Date: May 22, 2010 10:57:47 AM PDT To: Martin Hewitson Subject: Re: core data, undo and redo - follow-up question On May 22, 2010, at 10:38 AM, Martin Hewitson > wrote: So I would override undo: and

Re: core data, undo and redo - follow-up question

2010-05-22 Thread Martin Hewitson
Thanks, Kyle. I can see a way forward now based on what you suggested. I'll give it a go. Best wishes, Martin On May 22, 2010, at 8:01 PM, Kyle Sluder wrote: > Oops, forgot to copy the list. > > --Kyle Sluder > > Begin forwarded message: > >> From: Kyle Sluder >> Date: May 22, 2010 10:57:4

NSMovieView -> QTMovieView; rate problems...

2010-05-22 Thread Matthew Weinstein
Dear developers, One important aspect of my app is teh ability to speed and slow audio (and video playback). On the old NSMovieview this worked like an analog tape machine: if you used NSMovieview setRate: it would slow the sound down smoothly but make it lower; which is fine. Under the new reg

NSTokenField memory management issue

2010-05-22 Thread Dan Treiman
I have a cocoa app which changes the content of a window as you navigate, similar to a web browser. This app is compiled using gc required. Everything is fine unless my NSTokenField subclass is displayed, in which case the entire view hierarchy remains rooted and does not get garbage collected

Undo/Redo Notifications

2010-05-22 Thread Gordon Apple
So far, I don't see what I need for enabling/disabling undo/redo buttons in iPhoneOS NSUndoManager. I want to implement an undo button/popover, a la Pages, for a UITextView. I know I can read canUndo/canRedo, but I need an active notification when undo status changes in order to enable/disable th

Re: Forcing NSImage to cache images at certain sizes

2010-05-22 Thread Ken Ferry
On Sat, May 22, 2010 at 12:14 AM, B.J. Buchalter wrote: > > On May 21, 2010, at 10:10 PM, Ken Ferry wrote: > > Hi BJ, >> >> On Fri, May 21, 2010 at 2:44 PM, B.J. Buchalter wrote: >> I read the NSImage and Cocoa drawing guide docs, which tends to indicate >> that calling drawInRect:fromRect:oper

Re: Calling allObjects memory allocation problem

2010-05-22 Thread Clark S. Cox III
On May 21, 2010, at 8:54 AM, Keary Suska wrote: > On May 21, 2010, at 9:18 AM, Paul Sanders wrote: > >>> Also be aware that just because memory is released, doesn't mean it is >>> returned to the system (e.g. you will not >>> see your apps memory usage go down in Activity Monitor). In fact, AF

Re: NSMovieView -> QTMovieView; rate problems...

2010-05-22 Thread James W. Walker
On May 22, 2010, at 1:26 PM, Matthew Weinstein wrote: > One important aspect of my app is teh ability to speed and slow audio (and > video playback). On the old NSMovieview this worked like an analog tape > machine: if you used NSMovieview setRate: it would slow the sound down > smoothly but m

Re: Undo/Redo Notifications

2010-05-22 Thread Fritz Anderson
On 22 May 2010, at 4:30 PM, Gordon Apple wrote: > So far, I don't see what I need for enabling/disabling undo/redo buttons in > iPhoneOS NSUndoManager. I want to implement an undo button/popover, a la > Pages, for a UITextView. I know I can read canUndo/canRedo, but I need an > active notificati

Re: getting file creation date from NTFS

2010-05-22 Thread Angelo Chen
As suggested by Ken, I tried FSMegaInfo on NOTEPAD.EXE in a bootcamp volume:if I compared it with Finder's display, Finder listed March 30, 2010 6:48PM as 'Created'looks like, st_atime is the creation date? 'NOTEPAD.EXE'    st_dev     = 0x0e03 (major=14, minor=3, disk0s3)    st_ino     = 246

Re: Undo/Redo Notifications

2010-05-22 Thread Gordon Apple
Well, I was hoping maybe someone could show me the obvious that I was missing. :-) I guess I'm going to have to brush up on my undo handling, especially since I'm also doing some programmatic edits. I didn't use the popover for now, just did separate undo/redo buttons, which works. But I would

Re: Undo/Redo Notifications

2010-05-22 Thread Gideon King
If you want to do something that the standard undo manager doesn't do, you could drop in GCUndoManager from http://apptree.net/gcundomanager.htm I have been using it in my current project, and have found the ability to actually see what is going on in the undo stack a real boon, and of course wi