Re: VC# vs. ObjC and partial abstract classes

2014-03-18 Thread Sixten Otto
On Tue, Mar 18, 2014 at 7:29 PM, Luther Baker wrote: > A _better_ analogy to an Objective-C @protocol would be a formal Java > interface. > Sure. And the same in C# (which the OP was asking about). > So, Kyle may have good reasons for his answer - but if I understand the > essence of your ques

Re: VC# vs. ObjC and partial abstract classes

2014-03-18 Thread Chris Hanson
On Mar 18, 2014, at 7:29 PM, Luther Baker wrote: > A _better_ analogy to an Objective-C @protocol would be a formal Java > interface. In their design, Java’s interfaces were explicitly modeled on Objective-C’s @protocol construct. -- Chris ___ C

Re: VC# vs. ObjC and partial abstract classes

2014-03-18 Thread Luther Baker
On Tue, Mar 18, 2014 at 8:11 PM, Kyle Sluder wrote: > On Tue, Mar 18, 2014, at 05:30 PM, William Squires wrote: > > Hi all! > > Obviously (IIRC) a pure abstract class would map to a formal protocol > > in ObjC (or a class interface in languages such as REALbasic/Xojo, or > > VB 6). My best

Re: VC# vs. ObjC and partial abstract classes

2014-03-18 Thread Kyle Sluder
On Tue, Mar 18, 2014, at 05:30 PM, William Squires wrote: > Hi all! > Some languages (like C++ and Visual C#) allow for partial abstract > classes (i.e. some methods are implemented, while others are left to > subclasses to implement - and, in fact, must implement since the > partial abstra

VC# vs. ObjC and partial abstract classes

2014-03-18 Thread William Squires
Hi all! Some languages (like C++ and Visual C#) allow for partial abstract classes (i.e. some methods are implemented, while others are left to subclasses to implement - and, in fact, must implement since the partial abstract class does not). Is there a way to do this in ObjC? Is this why NS

Re: Exception in -predicateWithFormat: but nothing logged

2014-03-18 Thread Rick Mann
Oh, I figured it out. You can't write "!". You have to write " == false". On Mar 18, 2014, at 17:11 , Rick Mann wrote: > My iOS simulator code is throwing an exception in -predicateWithFormat:, as > evidenced by Xcode stopping at my exception breakpoint, but nothing gets > logged, and if I al

Exception in -predicateWithFormat: but nothing logged

2014-03-18 Thread Rick Mann
My iOS simulator code is throwing an exception in -predicateWithFormat:, as evidenced by Xcode stopping at my exception breakpoint, but nothing gets logged, and if I allow it to continue, it SIGABRTS in main. No idea exactly what it doesn't like about the predicate. I'm referencing a new propert

Re: provisioning profile is ignored

2014-03-18 Thread Mike Kluev
On Tue, Mar 18, 2014 at 6:10 PM, James Moore wrote: > On Feb 4, 2014, at 5:30 PM, Mike Kluev wrote: >> >> i am signing my mac app with developers provisioning profile that >> contains few uuids. then i am trying to run this app on the mac which >> uuids is not included in the provisioning profile

Re: menuNeedsUpdate for key equivalents?

2014-03-18 Thread Mills, Steve
On Mar 18, 2014, at 13:16:31, Jim Prouty wrote: > Because menuHasKeyEquivalent:forEvent:target:action: is asking only menu(s) > it knows about whether they contain the key equivalent, and we very likely > are about to change which menu/menu item has that key equivalent with our > just-in-time

Re: How to create a Tags selection field in a dialog

2014-03-18 Thread Jens Alfke
On Feb 28, 2014, at 10:54 AM, Ben Staveley-Taylor wrote: > I’m considering making use of the Finder Tags functionality in Mavericks but > the APIs seem a little sparse. The tags are just Spotlight metadata, as far as I know. There are 3rd party apps like Leap and TagIt that have been using t

Re: EULA presentation requirements?

2014-03-18 Thread Fritz Anderson
On 10 Feb 2014, at 10:25 PM, rick.langschultz wrote: > Doesn't [EULA] stand for end-user LICENSE agreement, aren't such licenses > prohibited per the clear language in the agreement as outlined? My rule, if > you have a question about it, don't. I must not be clear on your meaning. First, t

Re: menuNeedsUpdate for key equivalents?

2014-03-18 Thread Jim Prouty
On Mar 18, 2014, at 7:45 AM, Kyle Sluder wrote: > On Mar 13, 2014, at 1:19 PM, Jim Prouty wrote: >> >> We'd love to have menuNeedsUpdate: be called before Cocoa starts calling >> menuHasKeyEquivalent:forEvent:target:action:. > > Why can't you just do your custom key equivalent handling withi

Re: provisioning profile is ignored

2014-03-18 Thread James Moore
Are you using any entitlements - like iCloud - that require that your Mac be provisioned? I don’t think gatekeeper will prevent the app from launching if it’s not requesting to use any machine-specific resources. As always Console is a good place to check. James On Feb 4, 2014, at 5:30

generateCGImagesAsynchronouslyForTimes:completionHandler

2014-03-18 Thread Kevin Meaney
The discussion for this AVAssetImageGenerator method mentions that this method uses an efficient "batch mode" to get image in time order. What I don't see any info on, is whether the completion handler is called on the same queue as the one from which generateCGImagesAsynchronouslyForTimes:comp

Re: menuNeedsUpdate for key equivalents?

2014-03-18 Thread Kyle Sluder
On Mar 13, 2014, at 1:19 PM, Jim Prouty wrote: > > We'd love to have menuNeedsUpdate: be called before Cocoa starts calling > menuHasKeyEquivalent:forEvent:target:action:. Why can't you just do your custom key equivalent handling within an implementation of this method? --Kyle Sluder

Re: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?

2014-03-18 Thread Kyle Sluder
On Mar 18, 2014, at 4:56 AM, Vojtěch Meluzín wrote: > > Hi, > > my plugins are accepting keyboard events. When a key event is not handled, > it is forwarded somewhere else like this: > > [super keyDown: pEvent] > > If that's not done, hosts don't get spacebar for start/stop playback for > exam

Re: Best way to composite/tile multiple CGImages to one image

2014-03-18 Thread Jim Crate
On Mar 14, 2014, at 5:30 PM, Trygve Inda wrote: > So what is the best way to use CoreImage in this case? > > I get the original large CGImageRef using an AVImageGenerator which grabs a > frame from a video file. I would start with something like this: CIImage *img = [CIImage emptyImage]; for

How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?

2014-03-18 Thread Vojtěch Meluzín
Hi, my plugins are accepting keyboard events. When a key event is not handled, it is forwarded somewhere else like this: [super keyDown: pEvent] If that's not done, hosts don't get spacebar for start/stop playback for example. Unfortunately there's a problem with Logic - when you press 1/2/3/4..

Re: Saving while opening with NSDocument

2014-03-18 Thread Quincey Morris
On Mar 11, 2014, at 10:24 , Colas B wrote: > I would like to perform `saveDocument:` in the process of opening a document > (I call this method in `- (id)initWithContentsOfURL:ofType:error:`. > > It does not work because of a deadlock. Yes, you can’t really expect to use the NSDocument subclas