Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread Shane Stanley
On 13 Nov 2013, at 4:08 AM, 2551 <2551p...@gmail.com> wrote: > I’ve put this one to bed and can now move on to the next probl Here's the answer already: setAutomaticDashSubstitutionEnabled:NO. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-d

Re: MP4 video playback on Mavericks - Where's a good place to start?

2013-11-12 Thread Bryan Vines
Thanks to Karl Moskowski, Jean-Daniel Dupas, and Stuart Rogers for confirming AVFoundation and AVKit as the modern way forward. After reviewing Apple's sample code, the slides from WWDC 2013 session 606, and a couple more Google searches, the task of playing an MP4 video was pretty straightforwa

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-12 Thread Graham Cox
On 12 Nov 2013, at 8:00 pm, Quincey Morris wrote: > Perhaps the question is why you’re using ‘performSelector’ for this at all, > other than historical inertia. Hmm, that just about sums it up I suppose. > Now, it would be more natural to use GCD for this — dispatch a block onto the > main

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-12 Thread Quincey Morris
On Nov 12, 2013, at 06:26 , Graham Cox wrote: > I’m just thinking about the use of > -performSelectorOnMainThread:withObject:waitUntilDone:, and what is the best > way to think about the waitUntilDone parameter. Perhaps the question is why you’re using ‘performSelector’ for this at all, other

Cocoaheads 92630 tomorrow, Wed. Nov 12 at 7pm

2013-11-12 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630. Stuart Cracraft will be discussing Amazon Web Services! We will have an easy-going discussion on

NSUserNotification + Custom Icon?

2013-11-12 Thread Jeremy Matthews
In 10.9, NSUserNotification supports a new property "contentImage", which allows the use of a graphic within the notification itself. It's nice, but not exactly what I was wishing for (puts it on the right side of the notification window). I was hoping that there might be a way to usurp the not

Re: NSStackView basics

2013-11-12 Thread Tom Harrington
Thanks Ken. I suspected it was something like that but didn't know what to do about it. It also hadn't occurred to me that making the text field centered didn't necessarily imply anything about the size of the containing view. With no constraints on the sizes of contained view, it seems that NSStac

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread Graham Cox
On 12 Nov 2013, at 5:51 pm, 2551 <2551p...@gmail.com> wrote: > Thanks, understood. However, I probably didn’t make it clear that I actually > need to do both. i.e., remove the quote formatting AND set a particular > default font and color. Yep, I got that. > Still not sure how to go about do

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-12 Thread Jean-Daniel Dupas
Le 12 nov. 2013 à 17:45, Graham Cox a écrit : > > On 12 Nov 2013, at 4:12 pm, Jean-Daniel Dupas wrote: > >> My rule is simply to never pass NO > > > Did you mean YES? (i.e. always pass NO). Others seem to be saying the > opposite. > My bad, Of course, always pass NO and never wait. > —G

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread 2551
On 12 Nov 2013, at 23:51, 2551 <2551p...@gmail.com> wrote: > Still not sure how to go about doing the latter > Scratch that. Light bulb went on. Got it! Thanks muchly. I’ve put this one to bed and can now move on to the next probl…ahem…*stage* of development. :p _

Mea culpa

2013-11-12 Thread Karl Moskowski
Sorry for the repeated replies, all. Mail.app and/or iCloud was misbehaving. Karl Moskowski ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread 2551
On 12 Nov 2013, at 23:25, Graham Cox wrote: > > This sounds like the smart quote substitution feature, which has nothing to > do with the font or other text attributes. Thanks, understood. However, I probably didn’t make it clear that I actually need to do both. i.e., remove the quote form

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-12 Thread Graham Cox
On 12 Nov 2013, at 4:12 pm, Jean-Daniel Dupas wrote: > My rule is simply to never pass NO Did you mean YES? (i.e. always pass NO). Others seem to be saying the opposite. —Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread 2551
Thanks Graham and Mark. Candle out, torch on (with fresh batteries). :) P On 12 Nov 2013, at 23:25, Graham Cox wrote: > > On 12 Nov 2013, at 4:19 pm, 2551 <2551p...@gmail.com> wrote: > >> I’m confused. If you select a NSTextView item in IB, then examine the >> Attributes Inspector, you

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread Graham Cox
On 12 Nov 2013, at 4:19 pm, 2551 <2551p...@gmail.com> wrote: > I’m confused. If you select a NSTextView item in IB, then examine the > Attributes Inspector, you’re presented with various options for setting text > attributes, such as the font, size and color. In my clumsy hands, none of > thes

Re: Cocoa-dev Digest, Vol 10, Issue 735

2013-11-12 Thread Karl Moskowski
On Nov 12, 2013, at 11:01 AM, cocoa-dev-requ...@lists.apple.com wrote: > Message: 11 > Date: Tue, 12 Nov 2013 10:01:16 -0600 > From: Bryan Vines > To: "cocoa-dev@lists.apple.com Developers" > Subject: MP4 video playback on Mavericks - Where's a good place to > start? > Message-ID: > Cont

Re: MP4 video playback on Mavericks - Where's a good place to start?

2013-11-12 Thread Jean-Daniel Dupas
Le 12 nov. 2013 à 17:01, Bryan Vines a écrit : > Good morning all, > > I'm toying with a project to play short video, stored in my app's bundle. I > had thought to use QTKit and a QTMovieView, but I can't locate the > QTMovieView in Interface Builder. > > Apple has a QTKit tutorial, "Creatin

Re: Cocoa-dev Digest, Vol 10, Issue 735

2013-11-12 Thread Karl Moskowski
On Nov 12, 2013, at 11:01 AM, Bryan Vines wrote: > I'm toying with a project to play short video, stored in my app's bundle. I > had thought to use QTKit and a QTMovieView, but I can't locate the > QTMovieView in Interface Builder. > > Apple has a QTKit tutorial, "Creating a Simple QTKit Medi

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread Mark Munz
Use [myTextView setAutomaticQuoteSubstitutionEnabled:NO]; to disable to automatic conversion of plain quotes to smart quotes. On Tue, Nov 12, 2013 at 7:19 AM, 2551 <2551p...@gmail.com> wrote: > I’m confused. If you select a NSTextView item in IB, then examine the > Attributes Inspector, you’re

MP4 video playback on Mavericks - Where's a good place to start?

2013-11-12 Thread Bryan Vines
Good morning all, I'm toying with a project to play short video, stored in my app's bundle. I had thought to use QTKit and a QTMovieView, but I can't locate the QTMovieView in Interface Builder. Apple has a QTKit tutorial, "Creating a Simple QTKit Media Player Application," but this is built a

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-12 Thread Jens Alfke
On Nov 12, 2013, at 6:26 AM, Graham Cox wrote: > I assume if I pass NO, the request is queued and processed once per event > loop. If I pass YES, there is some sort of lock which sleeps my thread until > the main thread completes the task. Right. > So passing NO, my worker thread can proceed

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-12 Thread Roland King
On 12 Nov, 2013, at 10:26 pm, Graham Cox wrote: > Is this just one of those cases where you have to judge the best approach, or > is there a better way to determine when to pass YES or NO? > > Currently, I generally pass NO, and my worker threads are not updating the > progress too often anyw

NSTextView - stopping conversion of quotation marks

2013-11-12 Thread 2551
I’m confused. If you select a NSTextView item in IB, then examine the Attributes Inspector, you’re presented with various options for setting text attributes, such as the font, size and color. In my clumsy hands, none of these work. The text entry always defaults to Helvetica 12.0 in standard bl

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-12 Thread Jean-Daniel Dupas
Le 12 nov. 2013 à 15:26, Graham Cox a écrit : > I’m just thinking about the use of > -performSelectorOnMainThread:withObject:waitUntilDone:, and what is the best > way to think about the waitUntilDone parameter. The situation is updating a > UI from another thread, using this to punt the upda

Re: Problems with reachability observer in Mavericks / Xcode 5

2013-11-12 Thread Jens Alfke
On Nov 12, 2013, at 5:50 AM, Pax <45rpmli...@googlemail.com> wrote: > Since it's not getting to reachabilityChanged, I'm guessing that the name > (kReachabilityChangedNotification) has changed in Mavericks. Is anyone aware > of any changes that have been made in this area? Google has rather t

waitUntilDone: parameter when performing selector on main thread

2013-11-12 Thread Graham Cox
I’m just thinking about the use of -performSelectorOnMainThread:withObject:waitUntilDone:, and what is the best way to think about the waitUntilDone parameter. The situation is updating a UI from another thread, using this to punt the update to the main thread (in fact the progress bar situatio

Problems with reachability observer in Mavericks / Xcode 5

2013-11-12 Thread Pax
Here's an odd one. It works before Mavericks (Xcode 5) - and doesn't work now. I've been playing with Reachability (https://developer.apple.com/Library/ios/samplecode/Reachability/Introduction/Intro.html). Apple's example is for iOS, but with a few small mods it worked fine on Mac OS X. I w

-[UITextField selectAll:] causes cut/copy/paste controls to appear

2013-11-12 Thread Rick Mann
In my table view, when the user taps “+”, we create a new entry, then automatically push that one. Then I try to select the contents of a UITextField so the user can quickly edit it. In so doing, the field also pops up the cut/copy/paste control. There are some Stack Overflow answers to this,