On Sep 4, 2016, at 22:50 , Gerriet M. Denkmann wrote:
>
> I really want “onlyKnownBySubclass” to be a constant (i.e. let instead of var)
There’s an easy way if you can declare both classes in the same file. Then, you
can just declare the instance variable like this:
> private(set) var on
I have a SuperClass with several Subclasses.
The SuperClass will never be instantiated. It just contains code common to all
subclasses.
Here an example:
I really want “onlyKnownBySubclass” to be a constant (i.e. let instead of var).
But cannot figure out how to do this.
class SuperClass
{
On 04.09.2016 at 20:48 Jens Alfke wrote:
> 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 impossible?
> Perha
> 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
> 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 impossible?
Perhaps through LaunchServices, or by implementing
When double-clicking a document file that is to be opened with my app,
the path to this file isn't passed in argv[] but can be obtained by
implementing "openFile" in the NSApplicationDelegate.
Is there also a way to get the file argument without having an NSApp,
i.e. can my program somehow obtain