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

2011-10-12 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 k...@codeweavers.com wrote: On Oct

Re: CoreRecipes in Xcode4 ?

2011-10-12 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 them

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

2011-10-12 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 k...@codeweavers.com 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,

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-12 Thread vade
In my experience with AVFoundation, its really not ready for anything more than simple playback apps using Core Animation / AVPlayerLayer. You have noticed there is no visual context replacement, and no way to get reasonably fast access to CVPixelbufferRefs of CVOpenGLTextureRefs at all.

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-12 Thread Jean-Daniel Dupas
Le 12 oct. 2011 à 04:46, Robert Monaghan a écrit : 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

Re: Keeping grayscale image grayscale

2011-10-12 Thread Heinrich Giesen
Jonathan Taylor wrote: I'm working with 16-bit grayscale images, and for the most part I'm just manipulating bits within NSBitmapImageRep objects. However for convenience it would be nice to do some stuff with NSImages, particularly when rescaling and suchlike. The problem is that whenever

Re: Retain/Release and Properties clarification

2011-10-12 Thread Bayes Scott F
Someone on Matt's site mentioned the possibility that the synthesized ivar could be implemented indirectly, say as a member of a collection. Since the implementation's opaque, we don't know if that ever can happen. So, is self-mySynthIvar safe (both lvalue and rvalue), or should we be

Re: drawRect not being called by NSCollectionView..

2011-10-12 Thread Robert Monaghan
Ok, A further update: After doing some reading on this list, and some additional reading Apple's site, I learned that Core Animation is being used. Just for fun, I in my NSCollectionViewItem's NSView, I called setWantsLayers:YES. Suddenly my items started showing up! (Well, they are showing up

Re: Retain/Release and Properties clarification

2011-10-12 Thread David Duncan
On Oct 12, 2011, at 9:21 AM, Bayes Scott F wrote: Someone on Matt's site mentioned the possibility that the synthesized ivar could be implemented indirectly, say as a member of a collection. Since the implementation's opaque, we don't know if that ever can happen. I can't say that I know

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-12 Thread Mr. Gecko
Just so Apple knows we want this, I'll also fill an enhancement request for a QTVisualContext like API it's really useful for realtime video effects and off process video playing. The more people who files bug reports for the same thing, the more Apple knows we want this. On Oct 12, 2011, at

Re: Retain/Release and Properties clarification

2011-10-12 Thread Bayes Scott F
Thank you, David, that's pretty clear. Sounds like safety first for my code: always use the setter/getter for synthesized properties, even in self. Or use @private ivars. ScottB On Oct 12, 2011, at 09:46 , David Duncan wrote: On Oct 12, 2011, at 9:21 AM, Bayes Scott F wrote: Someone on

Re: Retain/Release and Properties clarification

2011-10-12 Thread Greg Parker
On Oct 12, 2011, at 9:21 AM, Bayes Scott F wrote: Someone on Matt's site mentioned the possibility that the synthesized ivar could be implemented indirectly, say as a member of a collection. Since the implementation's opaque, we don't know if that ever can happen. A property may be

Re: Retain/Release and Properties clarification

2011-10-12 Thread Bayes Scott F
Thanks, Greg. ScottB On Oct 12, 2011, at 12:12 , Greg Parker wrote: On Oct 12, 2011, at 9:21 AM, Bayes Scott F wrote: Someone on Matt's site mentioned the possibility that the synthesized ivar could be implemented indirectly, say as a member of a collection. Since the implementation's

Re: urlFromString creating bad URLs with string containing []

2011-10-12 Thread Martin Linklater
Thanks Mike, At the moment I'm using [NSData +dataWithContentsOfURL] running in its own GCD dispatch queue. How much better performance should I expect to get using NSURLConnection ? I'll need to weigh up the benefits before I go refactoring the server code. Cheers. On 7 Oct 2011, at 15:04,

Locking an object's location to the scroll view (not the document)

2011-10-12 Thread James Maxwell
I'm using GCDrawKit, which has been an amazing help in getting my app's interface together. However, I've run into a problem that's making me slightly crazy... My main view is a zooming scroll view. Thanks to drawKit, I generally have no problems at all; it handles the zooming beautifully, so

Can we talk iOS5 yet?

2011-10-12 Thread Jim Adams
Now that it is out can I resubmit my question? Jim Adams jim.ad...@sas.com Principal Systems Developer SAS Institute ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Select model objects with NSTableView using cocoa bindings

2011-10-12 Thread Luc Van Bogaert
Hi, In my program window, I have some kind of 'inspector' panel, containing an NSTableView object, bound to an NSArrayController, which in turn is bound to a NSMutableArray of DotController objects. These DotControllers control Dot objects, which are custom view objects. Adding or removing

Re: Select model objects with NSTableView using cocoa bindings

2011-10-12 Thread Quincey Morris
On Oct 12, 2011, at 13:31 , Luc Van Bogaert wrote: I'm wondering if I should create a NSIndexSet property in my model object and bind it to the NSArrayController's 'selectedIndexes' key? Yes, but you've got the terminology wrong. The relevant concept here is a binding name, and it's

Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow

2011-10-12 Thread Sean McBride
On Sat, 8 Oct 2011 21:09:15 -0700, Jerry Krinock said: Don't do this: -[NSDate dateWithTimeIntervalSinceNow:FLT_MAX] ; Expected result: A date far off into the future which will always behave as though it is later than or equal to any other date. No problem ever in 32-bit executable. In

Re: List of registered URI handlers?

2011-10-12 Thread Tito Ciuro
Thanks Ken. I appreciate it. Regards, -- Tito On Oct 11, 2011, at 8:06 PM, Ken Thomases wrote: 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

Re: Locking an object's location to the scroll view (not the document)

2011-10-12 Thread James Maxwell
Holy smokes! Okay, just used the wrong Rect. Needed to use documentVisibleRect instead of the contentView's bounds. Ugh... Working fine now. J. On 2011-10-12, at 12:24 PM, James Maxwell wrote: I'm using GCDrawKit, which has been an amazing help in getting my app's interface together.

-viewDidUnload not always called?

2011-10-12 Thread Rick Mann
I've got a fairly simple iOS 4 app, built from the Utility Application stationery. I've noticed that the FlipsideVeiwController's -viewDidUnload method is not called when that view controller is dismissed/dealloced (even though -dealloc is). I can't tell from the docs for -viewDidUnload if it

Re: Locking an object's location to the scroll view (not the document)

2011-10-12 Thread Graham Cox
HI James, I would say that even if you have got it working, you're going out on a limb there. If you have elements in your interface that are positioned statically rather than part of the general content of the 'canvas' they might be better off being put into a separate view that is

Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow

2011-10-12 Thread Jerry Krinock
On 2011 Oct 12, at 14:40, Sean McBride wrote: Strange since NSTimeInterval is double in both 32 and 64 bit. Why did you use FLT_MAX and not DBL_MAX? Oh, probably when I wrote that code I wasn't aware DBL_MAX, and FLT_MAX was more than enough. No doubt the latter would be even worse. :)

Cocoaheads Lake Forest meeting CANCELLED for 10/12

2011-10-12 Thread Scott Ellsworth
No meeting tonight! We will reconvene in November - happy halloween! Scott ___ 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

Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow

2011-10-12 Thread Greg Guerin
Jerry Krinock wrote: Not necessarily. Multiple overflows tend toward a random number generator. Doubles overflow to +INF, as do floats. Arithmetic on INFs typically yields one of the INFs (+INF or -INF). It is decidedly non-random. It would be an interesting experiment, though. --

Best way to parse a time today?

2011-10-12 Thread Rick Mann
I have a situation where I have to parse times like 14:50 PDT. If I just set up an NSDateFormatter with dateFormat = @HH:mm z, I end up with a time of day in 1970. What's the best way to get it to give me that time of day today? Thanks, Rick ___

Re: Best way to parse a time today?

2011-10-12 Thread Roger Dalal
Rick: The following code, which is likely what you are doing, will return the time in 1970 (NSDate's reference date) because you have not specified a date: NSString *timeString = @14:50 PDT; NSDateFormatter *df = [[NSDateFormatter alloc ] init]; [df setDateFormat:@HH':'mm zzz]; NSDate *date =

Re: Best way to parse a time today?

2011-10-12 Thread Dave DeLong
Be careful with this approach, since there are some weird edge cases where that time may not exist on the proposed day (think DST boundaries). Dave Sent from my iPhone On Oct 12, 2011, at 6:46 PM, Roger Dalal roger.da...@gmail.com wrote: Rick: The following code, which is likely what you

Re: Best way to parse a time today?

2011-10-12 Thread Roger Dalal
Dave: Would it be possible for you to present an improved approach, please? I use this solution frequently, and have not yet encountered any issues, but now you have me worried! What approach do you suggest? Roger Dalal On Oct 12, 2011, at 9:49 PM, Dave DeLong wrote: Be careful with this

Using layers is very slow when using sandboxing

2011-10-12 Thread Vojtech Rinik
Example project: http://hron.fei.tuke.sk/~rinik/data/test.zip When you click the button, it hangs for a couple of seconds. If you disable entitlements, it works fine. --- Is this just me, or everyone? Could you please download the project (it has entitlements enabled), compile it and let me

[Moderator] Re: Can we talk iOS5 yet?

2011-10-12 Thread Scott Anguish
PR said that the OS would ship on the 12th. Therefore, the NDA would be lifted. — Scott Anguish [Moderator] Think of what Steve would do and then try and do better. For him. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Keeping grayscale image grayscale

2011-10-12 Thread Ken Ferry
Thanks Heinrich. Your code looks correct to me! See also http://cocoadev.com/index.pl?NSBitmapImageRep. I wrote most of that. -Ken Cocoa Frameworks On Wed, Oct 12, 2011 at 8:42 AM, Heinrich Giesen heinrich.gie...@t-online.de wrote: Jonathan Taylor wrote: I'm working with 16-bit grayscale