How to get mount options of a mounted volume?

2011-10-11 Thread Oleg Krupnov
Hi, I'd like to get the mount options of a particular volume (like "rw", "nobrowse", "automounted" etc.) of a mounted volume, like those I get when I run "mount" command in the Terminal. It should be easy, but I can't seem to find anything in the library. Thanks _

Re: How to get mount options of a mounted volume?

2011-10-11 Thread Vyacheslav Karamov
Hi! Have you tried [NSWorkspace getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:] ? http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWorkspace/getFile

Re: Retain/Release and Properties clarification

2011-10-11 Thread Matt Neuburg
On Fri, 07 Oct 2011 19:46:17 -0400, Andy Lee said: >On Oct 3, 2011, at 2:23 PM, Charles Srstka wrote: >> 2. KVO’s “access instance variables directly” (mis)feature recognizes the >> underscore prefix. I like to give it a prefix that KVO doesn’t know about so >> that I can be sure never to end up

Re: Scripting Bridge Finder

2011-10-11 Thread Matt Neuburg
On Mon, 10 Oct 2011 14:48:29 +0200, Leonardo said: >Hi, >with Scripting Bridge Finder, I am trying to change the folder window size >and the icon position of the files therein. I got 2 troubles. > >1) If the folder window is closed, I can't resize it. >2) After I change the position of the icon, I

Re: Retain/Release and Properties clarification

2011-10-11 Thread David Duncan
On Oct 11, 2011, at 9:57 AM, Matt Neuburg wrote: > I did everything "right" when I named an ivar "firstResponder" (property, > synthesized ivar, synthesized accessors) and totally broke my app because > Apple was apparently already using an undocumented ivar called > "firstResponder". > > http

"diskutil info -plist" via Cocoa object?

2011-10-11 Thread Todd Heberlein
I was looking at the rich information provided by diskutil: $ diskutil info -plist /Volumes/blah NSWorkspace has some of this information, but I was wondering if there is a Cocoa object that provides more of the information provided by diskutil. If not, does anyone know how is diskutil

Re: How to get mount options of a mounted volume

2011-10-11 Thread Greg Guerin
Oleg Krupnov wrote: I'd like to get the mount options of a particular volume (like "rw", "nobrowse", "automounted" etc.) of a mounted volume, like those I get when I run "mount" command in the Terminal. See the C function statfs(). See the include file , struct statfs, member f_flags. See the

Re: "diskutil info -plist" via Cocoa object?

2011-10-11 Thread Greg Guerin
Todd Heberlein wrote: If not, does anyone know how is diskutil getting this information? For example getfsstat(), statfs(), ...? I'm having troubles finding the equivalent of "BusProtocol" and "Internal" values in these structures. BusProtocol is probably worked out from the device path

Re: Quandary : NSAppleScript ties up main thread

2011-10-11 Thread Jerry Krinock
On 2011 Oct 10, at 19:01, Shane Stanley wrote: > From the 10.6 release notes: > >> Thread Safety >> OSA and AppleScript are now thread-safe… God help us. So here we are two years after the release of Snow Leopard and the documentation, http://developer.apple.com/library/mac/#documentation/Co

View based NSTableView and NSArrayController not in sync

2011-10-11 Thread Andre Masse
Hi, Here's the background: XCode 4.1, Lion (10.7.1) non CoreData, document based application using the master/detail paradigm. I'm currently trying to switch a working project to a view based NSTableView. I think I've set things up correctly in the nib because data is showing fine in the tab

Re: View based NSTableView and NSArrayController not in sync

2011-10-11 Thread Lee Ann Rucker
Did you also bind the table view's Selection Indexes to arrayController.selectionIndexes? On Oct 11, 2011, at 1:44 PM, Andre Masse wrote: > Hi, > > Here's the background: XCode 4.1, Lion (10.7.1) non CoreData, document based > application using the master/detail paradigm. > > I'm currently tr

Re: View based NSTableView and NSArrayController not in sync

2011-10-11 Thread Andre Masse
That's it!! Thanks a lot, Andre Masse ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update y

List of registered URI handlers?

2011-10-11 Thread Tito Ciuro
Hello, How would I determine which URI handlers are registered with the system? For example, amzn://, fb://, etc. Is there a way to determine this type of information? Thanks, -- Tito ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

CoreRecipes in Xcode4 ?

2011-10-11 Thread Koen van der Drift
Hi, How can I open the CoreRecipes sample project in Xcode 4? The project seems to be of an older version. With Xcode3 I get the option to update the project, but then the save as dialog screen freezes. Thanks, - Koen.___ Cocoa-dev mailing list (C

Window collection behavior, remove from cycle?

2011-10-11 Thread Arbit Richardi
I have a fullscreen window that should effectively disable window cycling; because I've taken over the entire screen, it doesn't makes sense to be able to bring other windows in front of the fullscreen one. NSWindow's NSWindowCollectionBehaviorIgnoresCycle collection behavior only removes a window

AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-11 Thread Mr. Gecko
Hello, I am needing to have AVPlayer output the video as an CVImageBufferRef in real time instead of AVPlayerLayer. I am able to do this with QTKit and QTPixelBufferContextCreate, however, QTKit is said to be dead and AVFoundation is the future as well as AVFoundation is 64bit. So far what I've

Re: Scripting Bridge Finder

2011-10-11 Thread Leonardo
Hi Matt, yes it is a Scripting Bridge question. I re-position the icon of a FinderItem that way: finderItem.position = newPos; Anyway, as I have read on the web (didn't yet checked), you can resize a closed window modifying the .DS_Store. But even if that is not true, if when I open a folder I

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-11 Thread Robert Monaghan
Hi, A quick word of warning, while QTKit is being deprecated for AVFoundation/Core Media, there is no third party codec support in the new APIs. I would consider this while you develop your app. I doubt that 3rd party codec support for Core media is going to arrive as fast (or as complete) as w

Re: How to get mount options of a mounted volume?

2011-10-11 Thread Ken Thomases
On Oct 11, 2011, at 6:42 AM, Oleg Krupnov wrote: > I'd like to get the mount options of a particular volume (like "rw", > "nobrowse", "automounted" etc.) of a mounted volume, like those I get > when I run "mount" command in the Terminal. There are many ways to get volume information. For the mou

Re: "diskutil info -plist" via Cocoa object?

2011-10-11 Thread Ken Thomases
On Oct 11, 2011, at 1:12 PM, Todd Heberlein wrote: > I was looking at the rich information provided by diskutil: > > $ diskutil info -plist /Volumes/blah > > NSWorkspace has some of this information, but I was wondering if there is a > Cocoa object that provides more of the information pr

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-11 Thread Mr. Gecko
I understand this and have things to account for this already working. I would explain what my program does, but that will take a long time. Basically the reason I need it in CVImageBufferRef using YUV format of pixles is because I am doing off process playing of video and just receiving the ima

Re: List of registered URI handlers?

2011-10-11 Thread Ken Thomases
On Oct 11, 2011, at 5:18 PM, Tito Ciuro wrote: > How would I determine which URI handlers are registered with the system? For > example, amzn://, fb://, etc. > > Is there a way to determine this type of information? Not programmatically, I don't believe. (Launch Services will show you the URI

Re: Window collection behavior, remove from cycle?

2011-10-11 Thread Ken Thomases
On Oct 11, 2011, at 7:37 PM, Arbit Richardi wrote: > I have a fullscreen window that should effectively disable window > cycling; because I've taken over the entire screen, it doesn't makes > sense to be able to bring other windows in front of the fullscreen > one. > > NSWindow's NSWindowCollecti

Re: CoreRecipes in Xcode4 ?

2011-10-11 Thread Jerry Krinock
On 2011 Oct 11, at 16:07, Koen van der Drift wrote: > How can I open the CoreRecipes sample project in Xcode 4? The project seems > to be of an older version. If it won't open, you need to make a "New Project" from scratch, delete some of the default files, and then add files from CoreRecipes

Re: CoreRecipes in Xcode4 ?

2011-10-11 Thread Don Quixote de la Mancha
On Tue, Oct 11, 2011 at 10:03 PM, Jerry Krinock wrote: > That's known behavior.  I just had it happen to me when attempting to convert > an old Project Builder project with Xcode 3.  However, that may be because I > am committing the sin of using Xcode 3.2.5 alongside Xcode 4 in Lion. Previous

Re: How to get mount options of a mounted volume?

2011-10-11 Thread Oleg Krupnov
Hi Ken, Bingo! The f_flags field of statfs structure. Thanks, Ken. I've also checked FSMegaInfo, but I haven't found any additional ways to check the mount flags. It seems to use the same BSD statfs way. Oleg. On Wed, Oct 12, 2011 at 5:51 AM, Ken Thomases wrote: > On Oct 11, 2011, at 6:42 AM,

Re: CoreRecipes in Xcode4 ?

2011-10-11 Thread Joar Wingfors
On 11 okt 2011, at 22:12, Don Quixote de la Mancha wrote: > Previous versions of Xcode supported installing multiple versions of > Xcode. I found this useful for having old deployment targets that > weren't supported in newer Xcodes, and to be able to open old project > files without getting the

Re: How to get mount options of a mounted volume?

2011-10-11 Thread Ken Thomases
On Oct 12, 2011, at 1:12 AM, Oleg Krupnov wrote: > On Wed, Oct 12, 2011 at 5:51 AM, Ken Thomases wrote: > >> On Oct 11, 2011, at 6:42 AM, Oleg Krupnov wrote: >> >>> I'd like to get the mount options of a particular volume (like "rw", >>> "nobrowse", "automounted" etc.) of a mounted volume, like