Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-04 Thread Jean-Daniel
> Le 4 déc. 2016 à 21:41, Andreas Falkenhahn a écrit : > > I've now implemented plugin support using dlopen() in my app and > it works fine so far. > > However, it seems like *all* symbols are exported to the dylib > inside the Cocoa Touch Framework. How can I configure Xcode to > export only c

Re: Linking one framework to two places in a project and static libs

2016-12-13 Thread Jean-Daniel
> Le 13 déc. 2016 à 21:59, Alex Zavatone a écrit : > > I've got a lovely (cough) non ARC iOS project that consists of 1 project file > that the target app is made from that links to 5 other projects that are > compiled to static libs through the odd method of specifying their path in > Other

Re: Retaining non-document windows

2017-01-04 Thread Jean-Daniel
> Le 4 janv. 2017 à 20:37, Quincey Morris > a écrit : > > On Jan 4, 2017, at 02:30 , Daryle Walker wrote: >> >> I always had to guess how to retain a non-document window. I usually get it >> after a bunch of hacking, but I want more official advice. Like I can get >> from here. >> >> I thi

Re: On NSIncrementalStore UUID Uniqueness

2017-01-10 Thread Jean-Daniel
UUID means Universally unique identifier and it must be unique: https://en.wikipedia.org/wiki/UUID To generate an UUID, use a standard system function (CFUUID, NSUUID, libuuid, …) > Le 10 janv. 2017 à 11:36, Daryle Walker a écrit : > > Been reading up on N

Re: On NSIncrementalStore UUID Uniqueness

2017-01-14 Thread Jean-Daniel
> Le 14 janv. 2017 à 11:41, Daryle Walker a écrit : > > >> On Jan 11, 2017, at 3:58 PM, Keary Suska wrote: >> >> >>> On Jan 11, 2017, at 11:16 AM, Jens Alfke wrote: >>> >>> >>>> On Jan 10, 2017, at 2:00 PM, Jean-Daniel

Re: On NSIncrementalStore UUID Uniqueness

2017-01-19 Thread Jean-Daniel
> Le 19 janv. 2017 à 22:18, Daryle Walker a écrit : > > >> On Jan 16, 2017, at 12:08 PM, Charles Srstka >> wrote: >> >>> On Jan 14, 2017, at 4:41 AM, Daryle Walker >> > wrote: >>> >>> Could I base the UUID off a hash of the URL? Maybe, but it wouldn’t survive >>> fi

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-07 Thread Jean-Daniel
> Le 6 mars 2017 à 14:28, davel...@mac.com a écrit : > > I have an iOS app (Attendance2) written in Objective-C. One of my users > upgraded to the public 10.3 iOS beta and reported he could no longer open his > documents (I have a subclass of UIManagedDocument so they are Core Data files > sto

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-20 Thread Jean-Daniel
> Le 7 mars 2017 à 21:03, davel...@mac.com a écrit : > >> >> On Mar 7, 2017, at 1:19 PM, Alastair Houghton >> wrote: >> >> On 7 Mar 2017, at 12:47, Jean-Daniel wrote: >>> >>> Did you try to use NSString -fileSystemRepresentation inste

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Jean-Daniel
> Le 21 mars 2017 à 12:03, davel...@mac.com a écrit : > >> >> On Mar 21, 2017, at 1:06 AM, Jens Alfke wrote: >> >> >>> On Mar 20, 2017, at 2:23 PM, davel...@mac.com wrote: >>> >>> NSURL *url = [[self courseDirectory] URLByAppendingPathComponent:name]; >> >> There’s nothing wrong with that c

Re: Official sidebar?

2017-03-26 Thread Jean-Daniel
The OP ask about « Side Bar » not « Tab Bar ». > Le 26 mars 2017 à 00:40, Saagar Jha a écrit : > > Nothing, if I remember correctly. Cocoa should handle window tabs for you. > > Saagar Jha > >> On Mar 25, 2017, at 07:49, Daryle Walker wrote: >> >> Testing out my app. Finally noticed the ne

Re: Normalisation of filenames

2017-04-05 Thread Jean-Daniel
> Le 5 avr. 2017 à 07:49, Gerriet M. Denkmann a écrit : > > >> On 3 Apr 2017, at 05:58, Aki Inoue wrote: >> This is the standard Unicode Normalization behavior. Each Unicode character is assigned the Unicode Combining Property, an integer value defining the canonical ordering

Re: Reference to embedded view controller in IB?

2017-04-06 Thread Jean-Daniel
> Le 6 avr. 2017 à 22:35, Kyle Sluder a écrit : > > On Wed, Apr 5, 2017, at 03:42 PM, Doug Hill wrote: >> I have a view controller that I instantiate in my Storyboard. This view >> controller has an embedding view inside it's view, and this embedding >> view has another view controller in it. >>

Re: Translating KVO-ed property to Swift

2017-04-17 Thread Jean-Daniel
One way to solve that is to declare an explicit private stored property for the ivar, and a public computed property for the logic. private var _version: String? = nil var version: String? { get { return _version } set { your set version code } } > Le 17 avr. 2017 à 10:24, Rick

Re: Translating KVO-ed property to Swift

2017-04-17 Thread Jean-Daniel
> Le 17 avr. 2017 à 10:52, Quincey Morris > a écrit : > > On Apr 17, 2017, at 01:43 , Jean-Daniel <mailto:mail...@xenonium.com>> wrote: >> >> var version: String? { > > A slight correction: this declaration actually must be: > >> dynamic va

Re: Translating KVO-ed property to Swift

2017-04-20 Thread Jean-Daniel
Just a tough that go in the ‘always use dynamic’ side. I think setter interposition is not the only issue with KVO. KVO also need to be able to fetch the old property value when -willChange: is called. I’m not sure about how it does that, but I’m pretty confident it will break if the getter is n

Re: file encription/decriptoin iOS

2017-06-28 Thread Jean-Daniel
> Le 27 juin 2017 à 04:25, Sandor Szatmari a > écrit : > > This is an interesting thread. The OP's original question made me think of > the functionality Apple recently (how recently I'm not sure) added to the iOS > Notes app. It allows you to selectively 'encrypt' (password protect) a note

Re: adding arc to a fundamentally non-arc project

2017-07-17 Thread Jean-Daniel
Did you switch from 32bit to 64bit ? Or enable the ‘symbol hidden by default’ build setting. The symbol visibility model is completely different on 64 bit and classes must be exported to be visible by other modules. > Le 15 juil. 2017 à 23:00, Matthew Weinstein a écrit : > > Trying to move fro

Re: Is "-init" really needed?

2017-08-10 Thread Jean-Daniel
> Le 10 août 2017 à 16:09, Charles Srstka a écrit : > >> On Aug 10, 2017, at 8:59 AM, Alastair Houghton >> wrote: >> >> On 10 Aug 2017, at 14:57, gerti-cocoa...@bitart.com >> wrote: >>> >>> On Aug 10, 2017, at 02:18, Alastair Houghton >>> wrote: >>

Re: Question about NSObject based Class & delegates

2017-08-18 Thread Jean-Daniel
Why are you using Implicitly Unwrapped Optional (IUO) for your instance variables ? This is the best way to get crashes like you do. IUO should only be used for very specific cases (IBOutlet) > Le 14 août 2017 à 20:59, Eric E. Dolecki a écrit : > > I have a custom class. I want to use some del

Re: Problem using NSTimer in privileged helper tool

2017-10-21 Thread Jean-Daniel
> Le 20 oct. 2017 à 18:56, Quincey Morris > a écrit : > > On Oct 20, 2017, at 03:23 , Mark Allan wrote: >> >> That worked with the block-based NSTimer API but not the selector-based API. >> I tried changing it to 'currentRunLoop' which got rid of the crash, but the >> timer never fired. >

Re: Register media source to system

2017-10-23 Thread Jean-Daniel
> Le 23 oct. 2017 à 22:47, Jens Alfke a écrit : > > > >> On Oct 22, 2017, at 11:39 AM, Totte Alm wrote: >> >> Om Mac OS X (not iOS), I need to take video and/or audio from input >> devices(like built in iSight ot FaceTime cameras), found using the standard >> AVCaptureDevice.devices(); an

Re: Loading very large image files (>10GB)

2017-12-05 Thread Jean-Daniel
UIImage is optimized to read pixel from disk at draw time and can be used to downsample a large image progressively ( https://developer.apple.com/library/content/samplecode/LargeImageDownsizing/Introduction/Intro.html ) I guess NSImage can do something similar. If not, this can probably be done

Re: Problem with NSWorkspace.shared and uid 0

2017-12-15 Thread Jean-Daniel
AFAIK, this is not an issue with uid 0 specifically, but more an issue with how LaunchService works (the framework underlying this part of NSWorkspace). The system maintains a per user databases of the installed bundles. This databases is updated each time an user interact with a new application

Re: Carbon -> Cocoa

2018-08-21 Thread Jean-Daniel
> Le 20 août 2018 à 18:51, Jens Alfke a écrit : > > > >> On Aug 18, 2018, at 11:19 AM, Stephane Sudre wrote: >> >> It might be the new Carbon once: >> >> - there is ABI stability in Swift. This could be not before late 2019. >> >> - the new APIs are only available in Swift. Is Swift NIO a

Re: Detecting if /Network/Library is available

2018-09-03 Thread Jean-Daniel
> Le 3 sept. 2018 à 19:07, Sandor Szatmari a > écrit : > > I have a problem to solve where it appears I need to detect if > /Network/Library is available or not. > > Basically, I’d like to handle situation where I need to copy items from > /Network/Library at times when it’s it’s not yet

Re: How to clear macOS app bundle cache

2018-09-04 Thread Jean-Daniel
> Le 4 sept. 2018 à 17:01, Andreas Falkenhahn a écrit : > > On 04.09.2018 at 15:54 Alastair Houghton wrote: > >> OK. Have you tried logging the path of a file in the bundle, so you >> can see where it’s being read from? > > CFBundleCopyBundleURL(CFBundleGetMainBundle()) always returns the pat

Re: C++ pointer to Cocoa object

2018-09-08 Thread Jean-Daniel
> Le 7 sept. 2018 à 19:46, Casey McDermott a écrit : > > We need to link some of our C++ classes to a matching Cocoa class. > It's easy for Cocoa to reference C++ objects. Going the other way is harder. > > We have been using a linker class that has a void pointer to the Obj-C object > in the

Re: API to determine status of System Integrity Protection?

2015-09-14 Thread Jean-Daniel Dupas
> Le 14 sept. 2015 à 01:33, Ed Wynne a écrit : > > > On Sep 13, 2015, at 5:47 PM, Stephane Sudre wrote: > That document doesn't mention an API… Hence, since that is the current documentation, my conclusion : “Don’t think so”. >>> There is an API. Much like with sandboxing it jus

Re: Identifying a specific Mac model

2015-09-14 Thread Jean-Daniel Dupas
> Le 14 sept. 2015 à 12:16, sqwarqDev a écrit : > > > On 14 Sep 2015, at 01:09, John Daniel wrote: > >> >> MacBook8,1 covers all colours of the new MacBook. >> I am trying to differentiate the silver, from the space grey, from the gold. > > Since the machines are physically identical save t

Re: Identifying a specific Mac model

2015-09-14 Thread Jean-Daniel Dupas
> Le 14 sept. 2015 à 15:53, John Daniel a > écrit : > > Thanks for the responses. Unfortunately, Apple is way ahead of all of us. > > The “Model Identifier” (MacBook8,1 et al.) is not sufficient to identify a > particular model. It only identifies general families of models. All you have > t

Re: The joys of people using valueForKey to get objects out of a dictionary.

2015-11-10 Thread Jean-Daniel Dupas
> Le 10 nov. 2015 à 19:52, Alex Zavatone a écrit : > > > On Nov 10, 2015, at 12:35 PM, Greg Weston wrote: > >> >> >>> It's been about 4 or 5 years since I made this mistake but I've just seen a >>> massive swath of code where every access of a dictionary object is using >>> valueForKey ins

Re: View-based NSTableView and ending editing with "return"

2016-02-03 Thread Jean-Daniel Dupas
> Le 24 janv. 2016 à 09:51, Arved von Brasch a écrit : > > Hello list, > > After putting it off for too long, I’m migrating to view-based NSTableViews. > I’ve worked through most of the conversion problems I’ve had, and am > generally pretty happy. There is, however, one problem I haven’t b

Re: Question about Archives and Serialisations Programming Guide

2016-02-05 Thread Jean-Daniel Dupas
You don’t tell use what is your problem. You can perfectly encode any structure using Keyed archivers (whether there is cycles and backlinks). > Le 5 févr. 2016 à 14:13, Dave a écrit : > > Hi, > > I’m having problems with Back Links when Archiving/Unarchiving an Object. I > found the text bel

Re: Question about Archives and Serialisations Programming Guide

2016-02-05 Thread Jean-Daniel Dupas
- > "Archive/Unarchive Problem/Question?”. > > Basically I need to save/restore a Network of Custom Objects….. > > All the Best > Dave > >> On 5 Feb 2016, at 13:18, Jean-Daniel Dupas wrote: >> >> You don’t tell use what is your problem. You can pe

Re: Question about Archives and Serialisations Programming Guide

2016-02-05 Thread Jean-Daniel Dupas
And obviously, you also add - encodeWithCoder: and -initWithCoder: methods in your custom classes. > Le 5 févr. 2016 à 14:33, Jean-Daniel Dupas a écrit : > > That is your need, not your problem. > > To archive an object graph (cyclic or not), you just do [

Re: Question about Archives and Serialisations Programming Guide

2016-02-05 Thread Jean-Daniel Dupas
Maybe an issue cause you use __weak reference which zeroed for some reason. Can you try to use __unsafe_unretained instead and see what happen ? > Le 5 févr. 2016 à 14:46, Dave a écrit : > > >> On 5 Feb 2016, at 13:34, Jean-Daniel Dupas wrote: >> >>

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-09 Thread Jean-Daniel Dupas
I agree. I can’t see how that can work with a properly configured Sparkle, that is an App that accepts only properly signed update. > Le 9 févr. 2016 à 23:22, Graham Cox a écrit : > > Thanks for the heads-up Jens. > > Is it enough to change the SUFeedURL to https (if your server supports it,

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-09 Thread Jean-Daniel Dupas
OK. I did watch the POC and it appears this is not in the update process, but in the check for update that the attack occurs. > Le 9 févr. 2016 à 23:27, Jean-Daniel Dupas a écrit : > > I agree. I can’t see how that can work with a properly configured Sparkle, > that is an App

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread Jean-Daniel Dupas
> Le 10 févr. 2016 à 05:48, Trygve Inda a écrit : > >> If your hosting provider still charges an arm and a leg for SSL, switch. > > I need SSL for multiple subdomains. My host (Pair Networks) charges $449/yr > for such a certificate. That seems really expensive. What are others paying > for thi

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-11 Thread Jean-Daniel Dupas
uot;213.186.33.24". > > Conduct the same exercise for any A record returned for www.apple.com, and > you'll also get this result. Completely expected. > > Now, if Jean-Daniel has stated definitively that https://xenonium.com is > expected to serve up a matching certif

Re: Can an NSArray ever have a count of -1?

2016-02-19 Thread Jean-Daniel Dupas
> Le 19 févr. 2016 à 22:29, Jens Alfke a écrit : > > >> On Feb 19, 2016, at 1:17 PM, Jim Adams wrote: >> >> SLogInfo(@"Starting csi %ld count %d", csi, sortedEvents.count); >> >> In the console I see: >> INFO: Starting csi -1 count -1 >> The very next line crashes when the sortedEv

Re: Can an NSArray ever have a count of -1?

2016-02-20 Thread Jean-Daniel Dupas
> Le 20 févr. 2016 à 07:28, Quincey Morris > a écrit : > > On Feb 19, 2016, at 22:14 , Gerriet M. Denkmann wrote: >> >> Is there (yet) a Swift version of ‘[NSString stringWithFormat: “%08lx”, >> (someCast) someValue]’ ? > > No, and yes, and no, and yes. > > There is currently AFAIK no such

Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro

2016-02-20 Thread Jean-Daniel Dupas
It is unsafe to use availability conditional in headers. You can’t guarantee that the framework client will has the same settings that what was used to compile the framework. That said, if you want to use weak when compiling for ARC and assign otherwise, you can just use #if __has_feature(objc_a

Re: undomanger performance

2016-04-30 Thread Jean-Daniel Dupas
Just my 2 cents. Maybe registering the changes is not executed immediately but deferred until the end of the current event loop cycle, so the undo manager can group them into a single operation. In such case, it would mean that what you think is the undo registration is just a call to schedul

Re: undomanger performance

2016-05-01 Thread Jean-Daniel Dupas
> Le 1 mai 2016 à 01:42, Quincey Morris a > écrit : > > On Apr 30, 2016, at 12:49 , Jean-Daniel Dupas <mailto:mail...@xenonium.com>> wrote: >> >> Maybe registering the changes is not executed immediately but deferred until >> the end of the current

Re: Class is implemented in both

2016-08-15 Thread Jean-Daniel Dupas
> Le 15 août 2016 à 15:27, Trygve Inda a écrit : > >> >>> On Aug 15, 2016, at 3:41 AM, Stephane Sudre wrote: >>> >>> . you could redefine the class name in the .pch of one project. >> >> +1 — I’ve had to do this before, and it works fine. Just add >> #define MyDisplayManager MyDisplayManager

Re: Class is implemented in both

2016-08-15 Thread Jean-Daniel Dupas
> Le 15 août 2016 à 18:02, Jens Alfke a écrit : > > >> On Aug 15, 2016, at 11:34 AM, Jean-Daniel Dupas > <mailto:mail...@xenonium.com>> wrote: >> >> No, You can have only one PCH per project. That said, you can define a >> second one that include

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jean-Daniel Dupas
> Le 24 août 2016 à 18:50, David Duncan a écrit : > > >> On Aug 24, 2016, at 1:23 AM, Jeff Szuhay wrote: >> >> I’m using a bunch of layers to draw images to, compose them, and then draw >> into a viewRect >> with >> >> CGContextDrawLayerInRect( viewContext, viewRect, myLayer); >> >>

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jean-Daniel Dupas
> Le 24 août 2016 à 19:33, Jean-Daniel Dupas a écrit : > >> >> Le 24 août 2016 à 18:50, David Duncan a écrit : >> >> >>> On Aug 24, 2016, at 1:23 AM, Jeff Szuhay wrote: >>> >>> I’m using a bunch of layers to draw images to,

Re: Get file argument

2016-09-04 Thread Jean-Daniel Dupas
> Le 4 sept. 2016 à 20:48, Jens Alfke a écrit : > > >> On Sep 4, 2016, at 4:56 AM, Andreas Falkenhahn >> wrote: >> >> Is there also a way to get the file argument without having an NSApp, >> i.e. can my program somehow obtain the file argument *before* creating >> the NSApp object or is that

Re: Why not use path-based API? (was: Loading image resources)

2014-09-14 Thread Jean-Daniel Dupas
Le 14 sept. 2014 à 10:23, Quincey Morris a écrit : > On Sep 14, 2014, at 00:57 , Aandi Inston wrote: > >> Why? Really, why? Certainly there are APIs where we have to use URL's and >> we have to convert the path into a URL, but where a non-deprecated >> path-based URL exists, what current or f

Re: How does the Swift Darwin module work?

2014-10-18 Thread Jean-Daniel Dupas
rators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/mailing%40xenonium.com > > This email sent to mail...@xenonium.com -- Jean-Daniel ___

Re: WTF is happening?

2014-12-13 Thread Jean-Daniel Dupas
The Object class is not used anywhere is OS X. It is deprecated and should have been removed from the runtime long time ago. The OS X kernel does not even include obj runtime, so it can’t possibly use the Object class. Mach port are integer that represent kernel object and not classes. The ro

Re: WTF is happening?

2014-12-15 Thread Jean-Daniel Dupas
I found only 5 classes that does not responds to isProxy and they are all internal classes, so real code will never have to deal with instances of such classes. And all classes prefixed by « OS_ » inherits NSObject and responds to isProxy. I run the experiment for myself and do not doubt the r

Re: WTF is happening?

2014-12-15 Thread Jean-Daniel Dupas
> Le 15 déc. 2014 à 13:31, Uli Kusterer a écrit : > > On 15 Dec 2014, at 12:42, Jean-Daniel Dupas wrote: >> I found only 5 classes that does not responds to isProxy and they are all >> internal classes, so real code will never have to deal with instances of >> su

Re: WTF is happening?

2014-12-15 Thread Jean-Daniel Dupas
bool isSubclass(Class cls, Class superclass) { if (class_respondsToSelector(object_getClass(cls), @selector(isSubclassOfClass:))) { return [cls isSubclassOfClass:superclass]; } } > Le 15 déc. 2014 à 16:49, Maxthon Chan a écrit : > > But I still need some way to t

Re: WTF is happening?

2014-12-15 Thread Jean-Daniel Dupas
> Le 15 déc. 2014 à 19:45, Fritz Anderson a écrit : > > I can be dense. Do I understand correctly that > > - You have an application that ideally should run continually. > > - It accepts plugins that provide one or more classes. > > - Those classes must at least observe a protocol; otherwise

Re: WTF is happening?

2014-12-15 Thread Jean-Daniel Dupas
> Le 15 déc. 2014 à 21:36, Greg Parker a écrit : > > >> On Dec 15, 2014, at 11:02 AM, Jean-Daniel Dupas wrote: >> >>> Le 15 déc. 2014 à 19:45, Fritz Anderson a écrit : >>> >>> - As is typical of ObjC plugins, the classes are packaged i

Re: Looking at self = [super init].

2015-05-29 Thread Jean-Daniel Dupas
> Le 29 mai 2015 à 19:22, Alex Zavatone a écrit : > > Was just looking at good old object initialization and came across a stupid > idea. > > For most object initialization, we do this: > > - (id)init { >if (self = [super init]) { >// Set up stuff here. >// this could get

Re: Looking at self = [super init].

2015-05-29 Thread Jean-Daniel Dupas
> Le 29 mai 2015 à 19:22, Alex Zavatone a écrit : > > Was just looking at good old object initialization and came across a stupid > idea. > > For most object initialization, we do this: > > - (id)init { >if (self = [super init]) { >// Set up stuff here. >// this could get

Re: Using CFSTR() with const char * variable

2015-06-07 Thread Jean-Daniel Dupas
That’s not going to work. __builtin___CFStringMakeConstantString is a special compiler function that requires a constant string to work in the first place, as it tells the compiler to generate CFString literal. I doubt the compiler will accept anything else as parameter. > Le 7 juin 2015 à 03

Re: Scripting Bridge Questions

2015-06-25 Thread Jean-Daniel Dupas
> Le 25 juin 2015 à 15:13, Dave a écrit : > > >> On 25 Jun 2015, at 13:33, Bill Cheeseman wrote: >> >> >>> On Jun 25, 2015, at 8:09 AM, Dave wrote: >>> >>> That’s the problem, “sdef" and/or “sdp" barf when I try to generate the >>> header file and without the header file you are pretty mu

Re: Scripting Bridge Questions

2015-06-25 Thread Jean-Daniel Dupas
> Le 25 juin 2015 à 15:57, Dave a écrit : > > >> On 25 Jun 2015, at 14:48, Bill Cheeseman wrote: >> >> >>> On Jun 25, 2015, at 9:13 AM, Dave wrote: >>> >>> I get this error: >>> >>> sdp: enumerator of enumeration "e183": missing required "name" attribute. >> >> >> Can you generate the s

Re: Subclassing a Subclass of SBApplication

2015-06-30 Thread Jean-Daniel Dupas
Using class extension is probably a safe way to extends such classes. @interface SXPhotoshopApplication (MyExtension) - (void)myWrapper; @end > Le 29 juin 2015 à 13:54, Dave a écrit : > > Hi, > > I’m using the Scripting Bridge, and I was wondering if it ok to subclass > SBXXX classes. Basi

Re: Swift and parameter names

2015-07-01 Thread Jean-Daniel Dupas
> Le 30 juin 2015 à 23:46, Quincey Morris > a écrit : > > On Jun 29, 2015, at 15:42 , Rick Mann wrote: >> >> Here's an example (and this is what I frequently encounter) where requiring >> parameter names adds nothing but clutter: >> >> let config = WKWebViewConfiguration() >> self.webVi

Re: Obj-c to Swift conversion question

2015-07-28 Thread Jean-Daniel Dupas
> Le 28 juil. 2015 à 16:03, Eric E. Dolecki a écrit : > > The more I stretch to Swift goals, the more I learn. However I've come upon > a little thing where I am translating code into Swift and quickly stumbled. > > *Obj-C:* > NSValue *keyboardEndFrameValue = [[notification userInfo] > objectFo

Re: Unique ID for a Window?

2015-07-29 Thread Jean-Daniel Dupas
> Le 29 juil. 2015 à 12:25, Dave a écrit : > > Hi, > > For reasons that are too complex to go in to, I need to somehow create a > Unique ID that is valid for the life of a Window. The Window I am trying to > identify is not owned by my App (think Screen Dump, like “Grab”). > > I ran this co

Re: NSManagedObject, NSString property retain vs copy

2015-07-31 Thread Jean-Daniel Dupas
> Le 30 juil. 2015 à 18:26, Fritz Anderson a écrit : > > On 30 Jul 2015, at 11:03 AM, Trygve Inda wrote: > >> It seems Apple is using retain rather than copy for NSString properties in >> an NSManagedObject subclass. >> >> I was always under the impression that copy should be used for NSStrin

Re: contextual menu plugin example in cocoa

2009-09-01 Thread Jean-Daniel Dupas
Le 1 sept. 2009 à 19:41, Klaus Wik a écrit : Nick Zitzmann wrote: On Aug 19, 2009, at 5:26 PM, augusto callejas wrote: if so, where would i find sample code like above, except using just cocoa? There aren't any. You have to use Carbon for at least the entry point of a CM plugin. After that,

Re: After changing to MacOS 10.6 XCode no longer compiles

2009-09-02 Thread Jean-Daniel Dupas
Le 2 sept. 2009 à 12:20, Horst Jäger a écrit : Hi, after changing to MacOS 10.6 my XCode no longer compiles. No error message and XCode doesn't freeze. It just says "CompileXIB ..." and that's it. Any idea what I could do? Which Xcode version ? _

Re: Finder contextual menu plugin 10.6

2009-09-02 Thread Jean-Daniel Dupas
Le 2 sept. 2009 à 14:10, Marco Cassinerio a écrit : Hi, so far i've build finder plugin using Carbon and SampleCMPlugin code example. Now, with 10.6, Carbon support has been dropped. So, how can i create a finder plugin that works only on 10.6? Use System Services: http://developer.app

Re: What's actually important to do before exiting?

2009-09-02 Thread Jean-Daniel Dupas
comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org

Re: What about revamping OpenUp.app for Snow Leopard?

2009-09-04 Thread Jean-Daniel Dupas
Le 4 sept. 2009 à 13:20, Bill Cheeseman a écrit : On Sep 4, 2009, at 5:41 AM, Charles Srstka wrote: the latest release of Pacifist includes a QuickLook plug-in that can view many of the formats that Pacifist can read, which include zip, tar, tar.gz, tar.bz2, and others I just tried inst

Re: defaultConnection in Snow Leopard

2009-09-04 Thread Jean-Daniel Dupas
Le 4 sept. 2009 à 17:18, Kyle Sluder a écrit : On Sep 4, 2009, at 7:38 AM, "Gerriet M. Denkmann" > wrote: But it fails to mention, what I should use instead. The release notes say, but I don't have them in front of me andjim hesitant to go by memory for fear of miquoting. Quote from th

Re: OpenGL screen captures

2009-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 2009 à 06:06, Development a écrit : I'm using opengl to do screen captures because that seems to be the fastest way. The problem is that I need the cursor to be visible but it is not. Is there a flag I can set with opengl to make the cursor visible? Or am I going to have to attac

Re: Services Menu in Snow Leopard

2009-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 2009 à 06:26, Gerriet M. Denkmann a écrit : I have an app which provides info about files, folders, symlinks, etc. In Leopard the Services Menu of e.g. Finder did show my "Get Information" regardless whether a file or a folder was selected. In Snow Leopard the Services Menu of F

Re: subclassing with conditional method overriding

2009-09-05 Thread Jean-Daniel Dupas
Le 5 sept. 2009 à 12:33, jonat...@mugginsoft.com a écrit : On 5 Sep 2009, at 11:25, Alex Reynolds wrote: Let's say I have a class interface and implementation, as follows: --- @interface A : NSObject { ... } - (void) handleTask; @end @implementation A ... - (void) handleTask { // do stuf

Re: Turn on zombies in user environment?

2009-09-07 Thread Jean-Daniel Dupas
ompt you're at. Which was what I thought, but doing that produces much the same result: NSZombieEnabled=YES: Command not found. --Graham env NSZombieEnabled=YES Your/Executable -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: [[NSHost currentHost] name] blocking on 10.6 ?

2009-09-08 Thread Jean-Daniel Dupas
g" enabled ? That's what causing the issue on my machine. -- Jean-Daniel ___ 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: singleton pattern in cocoa

2009-09-14 Thread Jean-Daniel Dupas
cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa

Re: What replaces the (now deprecated) NSObjCValueType?

2009-09-16 Thread Jean-Daniel Dupas
ncode directive But if you really want to hard code type mapping, this may help: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100-SW1 -- Jean-D

Re: NSRunLoop issue

2009-09-17 Thread Jean-Daniel Dupas
borately effectively nothing. How can I prevent the busy loop, or achieve my goals with a better design? Add a dummy source (mach port or timer with an insanely high fire date) before running your loop. So you re sure there is at least

Re: NSRunLoop issue

2009-09-17 Thread Jean-Daniel Dupas
Le 17 sept. 2009 à 18:28, Jerry Krinock a écrit : On 2009 Sep 17, at 07:48, Jean-Daniel Dupas wrote: Add a dummy source (mach port or timer with an insanely high fire date) before running your loop. So you re sure there is at least one source. Please show a few lines of code adding a

Re: settings to build for 10.5 on 10.6?

2009-09-17 Thread Jean-Daniel Dupas
(by checking one gcc invocation in the build log). -- Jean-Daniel ___ 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

Re: Obtaining the application icon

2009-09-17 Thread Jean-Daniel Dupas
://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: settings to build for 10.5 on 10.6?

2009-09-17 Thread Jean-Daniel Dupas
n 10.5, but you do need to test there to ensure compatibility. -- David Duncan Apple DTS Animation and Printing -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: basic threading question: if parent thread completes

2009-09-17 Thread Jean-Daniel Dupas
intend to call pthread_join() on a thread, then call pthread_detach(). -- Jean-Daniel ___ 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

Re: What is the life of the c string returned by NSString's UTF8String method?

2009-09-18 Thread Jean-Daniel Dupas
an NSData from the string using -[NSString dataUsingEncoding:NSUTF8StringEncoding] and then use -[NSData bytes] as the returned value for this method is guarantee to have the same life as the NSData object. -- Jean-Daniel ___ Cocoa-dev mailing l

Re: Static Analyzer and Core Foundation

2009-09-19 Thread Jean-Daniel Dupas
FIXME in the clang code. Maybe filling a radar about it may prioritize it ? -- Jean-Daniel ___ 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

Re: favicon of address

2009-09-21 Thread Jean-Daniel Dupas
ct the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing lis

Re: Why am I always getting the linker error: 'duplicate symbol'...?

2009-09-22 Thread Jean-Daniel Dupas
ription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Suppressing Crash Reporter dialogs for a task

2009-09-23 Thread Jean-Daniel Dupas
in my software as it has some side effects like preventing crash log generation, and it also affect the bugger, but this is what your looking for I think. -- Jean-Daniel Le 22 sept. 2009 à 18:58, Mark Woods a écrit : Easier said than done. It's QuickTime that's crashing. I

Re: Global Hotkeys in 64-bit mode

2009-09-28 Thread Jean-Daniel Dupas
Zimmerman I'm using it but I install an Application Event Handler to catch HotKey events. I don't use the undocumented generated NSEvent. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Disable CD Ejection

2009-10-02 Thread Jean-Daniel Dupas
post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- J

Re: Issues with NSWindowDelegate on multiple Mac OS X platforms

2009-10-06 Thread Jean-Daniel Dupas
or in a prefix header): #ifndef MAC_OS_X_VERSION_10_6 #define MAC_OS_X_VERSION_10_6 1060 #endif -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
ime, i really don't want to make every variable global... but if that is proper technique, then i'll do that... are we saying there is no way to make a process use real memory? Jon. What is real memory ? Do you want to address the RAM directly without any virtual to physical ma

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
sk writes are there) Jon. On Oct 10, 2009, at 10:08 AM, Shawn Erickson wrote: This is, as stated, nonsensical. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: real verses Virtual memory

2009-10-10 Thread Jean-Daniel Dupas
ibe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to devli...@shadowlab.org -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Record and Playback immediately

2009-10-15 Thread Jean-Daniel Dupas
help. Can anybody put some light on this example. Cocoa-dev is not Macos-dev. This question has nothing to do with Cocoa and should be ask on coreaudio list. That said, maybe the AudioQueueTools sample code may help. -- Jean-Daniel ___ Cocoa

Re: Record and Playback immediately

2009-10-16 Thread Jean-Daniel Dupas
have any Macos Dev forums where I can ask this kind of questions. And I am working on AQRecord/Play. But still I haven't figured it out how to make it immediately. Regards Mustafa On Thu, Oct 15, 2009 at 4:27 PM, Jean-Daniel Dupas > wrote: Le 15 oct. 2009 à 09:41, Symadept a écrit :

  1   2   3   4   5   6   7   8   9   10   >