Re: Xcode interferes with signal handler

2024-01-30 Thread Pascal Bourguignon via Cocoa-dev
Le 30/01/2024 à 20:31, Gabriel Zachmann via Cocoa-dev a écrit : I am setting up a signal handler in my app like this: void *e = signal( SIGUSR1, signal_handler ); if ( e == SIG_ERR ) ... It works (i can 'kill -30 '), BUT ONLY, if I run my app outside of Xcode. When I launch it f

Re: "Z" in setDateFormat ?

2023-07-22 Thread Pascal Bourguignon via Cocoa-dev
Le 22/07/2023 à 12:15, Gabriel Zachmann via Cocoa-dev a écrit : In the Apple docs in chapter "Date Formatters" I found sample code that contains this line: [rfc3339DateFormatter setDateFormat:@"'-'MM'-'dd'T'HH':'mm':'ss'Z'"]; Now, my very specific question is: what does the 'Z' do? And

Re: Future of Cocoa

2019-11-21 Thread Pascal Bourguignon via Cocoa-dev
> On 21 Nov 2019, at 23:22, Dragan Milić via Cocoa-dev > wrote: > > And then that famous “I leave” announcement, like children not being happy > with how others play with them, so grabbing their toys and leave… But not > before making a verbal announcement about it… Well yes, good bye! What

Re: Implementing an import command in NSDocument-based app

2018-05-16 Thread Pascal Bourguignon
> Le 16 mai 2018 à 09:26, Rick Mann a écrit : > > I'm working on a little NSDocument-based app. The documents are packages (a > directory containing multiple files). One of the operations is to import a > music file into the document, which should copy the music file into the > package, and

Re: [OT] Question about writing documentation

2017-04-22 Thread Pascal Bourguignon
> On 22 Apr 2017, at 18:31, Uli Kusterer wrote: > > On 21. Apr 2017, at 19:28, davel...@mac.com wrote: >> You did't say what you tried, but IMO the best app for professional looking >> figures on the Mac is OmniGraffle from omnigroup.com. There are extensive >> stencil libraries for many thing

Re: Binary floating point format

2017-03-30 Thread Pascal Bourguignon
> On 31 Mar 2017, at 02:25, Carl Hoefs wrote: > > I have megabytes of raw legacy science datasets that I'm trying to read into > my app and ingest into an array of doubles. The data is supposed to be > organized as a stream of 8-byte doubles. I do not know how these datasets > were generated,

Re: More elegance than a long if/else

2017-03-11 Thread Pascal Bourguignon
> On 11 Mar 2017, at 09:57, Quincey Morris > wrote: > > On Mar 10, 2017, at 17:35 , Pascal Bourguignon <mailto:p...@informatimago.com>> wrote: >> >> this is much clearer in intent than return x+y. So much clearer… > > My argument is not that the origi

Re: More elegance than a long if/else

2017-03-10 Thread Pascal Bourguignon
> On 10 Mar 2017, at 23:32, Quincey Morris > wrote: > > On Mar 10, 2017, at 08:24 , Bryan Vines wrote: >> >> Would integer division work better than the modulus operator? > > It would certainly work better in the sense that division is the right > operator and modulus is the wrong one! > >

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-04 Thread Pascal Bourguignon
> On 3 Dec 2016, at 12:00, Andreas Falkenhahn wrote: > > On 03.12.2016 at 00:40 Jens Alfke wrote: > >> dlopen is hardly undocumented; it’s part of the core BSD Unix >> library. It’s got a man page and everything. > > That doesn't mean that it's ok to use it on iOS because of the sandbox. > You

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Pascal Bourguignon
> On 3 Dec 2016, at 00:40, Jens Alfke wrote: > > >> On Dec 2, 2016, at 2:17 PM, Andreas Falkenhahn > > wrote: >> >> Well, just because apps that use undocumented features aren't rejected from >> the >> app store doesn't make it official for me. > > dlopen is ha

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Pascal Bourguignon
> On 2 Dec 2016, at 23:17, Andreas Falkenhahn wrote: > > On 02.12.2016 at 22:55 Pascal Bourguignon wrote: > >> You would just embed the framework, without linking it. > > I'm not very familiar with the latest Xcode so does this mean I should add > my framewor

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Pascal Bourguignon
> On 2 Dec 2016, at 15:37, Andreas Falkenhahn wrote: > > On 02.12.2016 at 07:57 Pascal Bourguignon wrote: > >> Yes, dlopen is supported in iOS 8 and following. > > Is this support official or does it just work by chance and might stop > working in the > future?

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-01 Thread Pascal Bourguignon
> On 2 Dec 2016, at 01:31, Jens Alfke wrote: > > >> On Dec 1, 2016, at 7:58 AM, Andreas Falkenhahn >> wrote: >> >> My app supports external plugins. On macOS, Linux, and Windows those plugins >> are just shared objects/dylibs (or DLLs) loaded via dlopen() (or >> LoadLibrary() >> on Windows)

Re: Documentation Workflow

2016-11-12 Thread Pascal Bourguignon
> On 12 Nov 2016, at 18:41, Richard Charles wrote: > > The current documentation seems to be well formatted for display on an iPad. > Does anyone have a programming work flow that uses the documentation > displayed on an iPad or iOS device? > > I suppose if you are commuting to work riding a

Re: iOS Application influencing a running web app?

2016-09-23 Thread Pascal Bourguignon
e HTML page of the app a PHP page. If > that's what you meant. > > Eric > >> On Fri, Sep 23, 2016 at 10:42 AM Pascal Bourguignon >> wrote: >> Just write some http app on the laptop, and hit it with requests (urls) from >> the iOS app; this would be

Re: iOS Application influencing a running web app?

2016-09-23 Thread Pascal Bourguignon
Just write some http app on the laptop, and hit it with requests (urls) from the iOS app; this would be the Q&D way to do it easily and with some level of security (https). Since you already have a web app, you can just add some admin requests to it. -- __Pascal Bourguignon__ > Le 23 sept. 2

Re: Why doesn't this crash?

2016-09-10 Thread Pascal Bourguignon
It returns nil by feature of Objective-C. Referencing the class will translate into a runtime class lookup which will return nil. Sending a message to nil will return nil. The only caveat is that a class with that name could be provided by a library and invalidate your code. But I would say im

Re: Method name starts with "set"

2016-08-02 Thread Pascal Bourguignon
> Le 2 août 2016 à 07:11, Trygve Inda a écrit : > > I have a class where I would like to have a method name like: > > -(void)setMaximumOperations:(NSInteger)operations > { > [[self operationQueue] setMaxConcurrentOperationCount:operations]; > > ... Do other stuff ... > } > > Is this a bad

Re: How to set a TextField

2016-03-14 Thread Pascal Bourguignon
> On 14 Mar 2016, at 09:17, Gerriet M. Denkmann wrote: > > You are absolutely right that a background would be the right thing. > But this is just a small tool for testing, and it will not take more than a > few seconds, so I am trying to avoid this. For testing you can use NSLog instead. -

Re: Where are the interface builder components?

2009-11-15 Thread Pascal Bourguignon
From: "Sandro Noël" But where are the ones from apple... that's what i'm wondering, Why do we have to duplicate work that evidently has already been done. I'm confused as why apple is not including it in it's development tools. it makes no sense to me... If Apple published the sources of its w