Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Shane Stanley
On 15/04/2012, at 3:26 AM, Charles Srstka wrote: > the Finder has *two* such ‘icns’ resources; one with ID -16496 and one with > ID -16455. The two ‘icns’ resources appear to be identical, and if I subtract > the size of one of them from the Finder alias’s size, I get the size of the > NSURL-cr

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Sean McBride
On Sat, 14 Apr 2012 08:28:20 -0500, Michael Hall said: >I did a quick google out of curiosity and there doesn't appear to be >much available anymore to handle actually looking at or working with >resource forks. There's this:

Re: Watching a variable in Xcode 4.3

2012-04-14 Thread Evadne Wu
That’s too bad. Would you please post a minimal test case that crashes Xcode? -ev On Apr 14, 2012, at 10:26 PM, Pascal Harris <45rpmli...@googlemail.com> wrote: > Evadne, > > I saw that before - sadly, it doesn't seem to work for me. For a start, > Xcode (4.3.2) always crashes when I try thi

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Charles Srstka
On Apr 13, 2012, at 6:54 PM, Shane Stanley wrote: > I'm creating alias files using bookmark data, as in the docs: > > NSData *bookmarkData = [url > bookmarkDataWithOptions:NSURLBookmarkCreationSuitableForBookmarkFile >includingResourceValuesForKeys:nil >

Re: Xcode warns about missing protocol definition, even though @protocol is used

2012-04-14 Thread Kyle Sluder
On Apr 14, 2012, at 5:55 AM, Florian Pilz wrote: > NewFooController.h: >#import >@protocol NewFooControllerDelegate; >@interface NewFooController : UITableViewController >@property (nonatomic, weak) id delegate; >@end > >@protocol NewFooControllerDelegate >@end >

Re: Opening a gap in NSTableView during drag and drop

2012-04-14 Thread Andrew Madsen
On Apr 14, 2012, at 1:31 AM, Quincey Morris wrote: > On Apr 13, 2012, at 08:02 , Andrew Madsen wrote: > >> I've got a simple, single-column, view-based NSTableView with items in it >> that can be dragged to reorder them. During drag and drop, I'd like to make >> it so that a gap for the item-t

Re: Watching a variable in Xcode 4.3

2012-04-14 Thread Pascal Harris
Evadne, I saw that before - sadly, it doesn't seem to work for me. For a start, Xcode (4.3.2) always crashes when I try this - and it doesn't matter whether I try on my MacBook Air or my Mac Pro (with a fresh, clean, install of Xcode). Most perplexing. On 12 Apr 2012, at 20:50, Evadne Wu wrot

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Shane Stanley
On 14/04/2012, at 11:28 PM, Michael Hall wrote: > I did a quick google out of curiosity and there doesn't appear to be much > available anymore to handle actually looking at or working with resource > forks. If you can examine contents you could scan for the AppleEvent id's > 'alis' or 'bmrk'.

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Michael Hall
On Apr 14, 2012, at 7:11 AM, Shane Stanley wrote: > Thanks Ken and Michael. So the Finder-generated alias has a ~96KB resource > fork, and the bookmark-generated one has a 48KB resource fork. On comparing > them, it looks like the first ~48KB are identical apart from the first and > last few b

Xcode warns about missing protocol definition, even though @protocol is used

2012-04-14 Thread Florian Pilz
Since I had a import-cycle recently, I'm moving all #import statements (concerning my own files) from the header into the corresponding .m-file. I also added @class and @protocol forward-declarations to soothe the compiler. However, I still get he following warning: Cannot find the protocol

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Shane Stanley
Thanks Ken and Michael. So the Finder-generated alias has a ~96KB resource fork, and the bookmark-generated one has a 48KB resource fork. On comparing them, it looks like the first ~48KB are identical apart from the first and last few bytes -- and the second 48KB of the Finder-generated one is a

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Michael Hall
On Apr 14, 2012, at 5:05 AM, Ken Thomases wrote: > You can also access the resource fork as a file by appending > "/..namedfork/rsrc" to the path. Ken beat me to it after I found this... Work with resource forks in the Terminal http://hints.macworld.com/article.php?story=2002022409532098 Ken

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Ken Thomases
On Apr 14, 2012, at 4:40 AM, Shane Stanley wrote: > On 14/04/2012, at 6:23 PM, Ken Thomases wrote: > >> The Finder-created one probably has a resource fork with additional data. >> That accounts for the size difference that isn't visible using "ls". >> Off-hand, I don't know what the resource

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Shane Stanley
On 14/04/2012, at 6:23 PM, Ken Thomases wrote: > The Finder-created one probably has a resource fork with additional data. > That accounts for the size difference that isn't visible using "ls". > Off-hand, I don't know what the resource fork data holds. How do I see the resource forks, if not

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Ken Thomases
On Apr 13, 2012, at 6:54 PM, Shane Stanley wrote: > When I look in the Finder, a Finder-created alias of the same file is listed > as 144KB, while the one I saved is 96KB. I'm curious about what's in that > extra 48KB. > > I had a look in Terminal and got this: > > Shanes-iMac:~ shane$ ls -lao

Re: Opening a gap in NSTableView during drag and drop

2012-04-14 Thread Quincey Morris
On Apr 13, 2012, at 08:02 , Andrew Madsen wrote: > I've got a simple, single-column, view-based NSTableView with items in it > that can be dragged to reorder them. During drag and drop, I'd like to make > it so that a gap for the item-to-be-dropped opens up at the location under > the mouse. Ga