|
Re: Swift and KVC
Hmm. I did try it in a playground before I posted, and the output is there. (Xcode 9.3)
Does it persist if you quit and relaunch Xcode?
Hmm. I did try it in a playground before I posted, and the output is there. (Xcode 9.3)
Does it persist if you quit and relaunch Xcode?
|
By
Quincey Morris
·
#556
·
|
|
Re: Swift and KVC
Many, many thanks. One curiosity, though... that works in my application but I still get no output in the Playground sample code.
Marc
Many, many thanks. One curiosity, though... that works in my application but I still get no output in the Playground sample code.
Marc
|
By
Marco S Hyman
·
#555
·
|
|
Re: Swift and KVC
It’s you, but you can plausibly blame it on Swift.
You need:
(since ‘value(forKey:)’ needs an Obj-C property name).
It’s you, but you can plausibly blame it on Swift.
You need:
(since ‘value(forKey:)’ needs an Obj-C property name).
|
By
Quincey Morris
·
#554
·
|
|
Swift and KVC
This simple little playground doesn’t print any value for the last line. It is a minimization of an issue I’m having in a larger program where the key-value can not be found. Is it me (likely)
This simple little playground doesn’t print any value for the last line. It is a minimization of an issue I’m having in a larger program where the key-value can not be found. Is it me (likely)
|
By
Marco S Hyman
·
#553
·
|
|
Re: Internationalisation of MainMenu
Seems not to work in Xcode Version 9.3 (9E145).
Also: this is really something Xcode should to for me.
Kind regards,
Gerriet.
Seems not to work in Xcode Version 9.3 (9E145).
Also: this is really something Xcode should to for me.
Kind regards,
Gerriet.
|
By
Gerriet M. Denkmann
·
#552
·
|
|
Re: Internationalisation of MainMenu
I would suggest you use a regular space, since a menu item can’t word-wrap onto a new line.
It *might* make a difference if the font specifies a different width for the non-breaking space than a
I would suggest you use a regular space, since a menu item can’t word-wrap onto a new line.
It *might* make a difference if the font specifies a different width for the non-breaking space than a
|
By
Quincey Morris
·
#551
·
|
|
Re: Internationalisation of MainMenu
Thanks a lot for this link!
Looking at the German stuff, I see that for example “Print…” gets translated:
29 times: "Drucken …" NO-BREAK SPACE; HORIZONTAL ELLIPSIS
56 times: “Drucken …"
Thanks a lot for this link!
Looking at the German stuff, I see that for example “Print…” gets translated:
29 times: "Drucken …" NO-BREAK SPACE; HORIZONTAL ELLIPSIS
56 times: “Drucken …"
|
By
Gerriet M. Denkmann
·
#550
·
|
|
Re: Internationalisation of MainMenu
https://developer.apple.com/download/more/?name=Glossaries
--
Gary L. Wade
http://www.garywade.com/
https://developer.apple.com/download/more/?name=Glossaries
--
Gary L. Wade
http://www.garywade.com/
|
By
Gary L. Wade
·
#549
·
|
|
FYI, Xcode 9.3 was just released.
https://download.developer.apple.com/Developer_Tools/Xcode_9.3/Xcode_9.3.xip
https://download.developer.apple.com/Developer_Tools/Xcode_9.3/Xcode_9.3.xip
|
By
Alex Zavatone
·
#548
·
|
|
Re: Internationalisation of MainMenu
It seems like there ought to be, but I don’t think there is.
I would assume that menu items that get added to your app at runtime (e.g. the ones at the bottom of the Edit menu) will be localized for
It seems like there ought to be, but I don’t think there is.
I would assume that menu items that get added to your app at runtime (e.g. the ones at the bottom of the Edit menu) will be localized for
|
By
Quincey Morris
·
#547
·
|
|
Internationalisation of MainMenu
I am trying to make an macOS app international.
On thing is MainMenu.strings. This contains lots of stuff which must have an official translation (e.g. into German) already.
(e.g. Edit → Cut).
Is
I am trying to make an macOS app international.
On thing is MainMenu.strings. This contains lots of stuff which must have an official translation (e.g. into German) already.
(e.g. Edit → Cut).
Is
|
By
Gerriet M. Denkmann
·
#546
·
|
|
Re: NSCondition
Hi Again,
Yes, that is what is does in effect, the outer while loop is "while ([[NSThread currentThread] isCancelled] == NO)” which does the same thing.
It only processes the Object if there is
Hi Again,
Yes, that is what is does in effect, the outer while loop is "while ([[NSThread currentThread] isCancelled] == NO)” which does the same thing.
It only processes the Object if there is
|
By
Dave
·
#545
·
|
|
Re: NSCondition
Dave,
See below for what I'm talking about with the -wait call...
Additionally, think about where your testing -isCancelled and breaking out of the loop(s); you have multiple loops. Does that break,
Dave,
See below for what I'm talking about with the -wait call...
Additionally, think about where your testing -isCancelled and breaking out of the loop(s); you have multiple loops. Does that break,
|
By
Sandor Szatmari
·
#544
·
|
|
Re: NSCondition
Hi Again Sandor,
Yes, I’ve had similar fun doing the same thing here!
Thanks for the heads up on isCancelled and I’ll take your advice and store it as a property.
I’m not sure I understand
Hi Again Sandor,
Yes, I’ve had similar fun doing the same thing here!
Thanks for the heads up on isCancelled and I’ll take your advice and store it as a property.
I’m not sure I understand
|
By
Dave
·
#543
·
|
|
Re: NSCondition
Regarding the call to -isCancelled in the consumer thread... presumably you will have a handle to this thread somewhere and want to -cancel it gracefully prior to termination... Or cancel it and
Regarding the call to -isCancelled in the consumer thread... presumably you will have a handle to this thread somewhere and want to -cancel it gracefully prior to termination... Or cancel it and
|
By
Sandor Szatmari
·
#542
·
|
|
Re: NSCondition
Dave,
That's great I'm glad it's working! I had fun working up the sample... :) I let it run for a couple of hours watching the processes add a consume data. It was interesting to see how the
Dave,
That's great I'm glad it's working! I had fun working up the sample... :) I let it run for a couple of hours watching the processes add a consume data. It was interesting to see how the
|
By
Sandor Szatmari
·
#541
·
|
|
Re: NSCondition
Hi,
Thanks for the sample code Sandor, I’ve now got it working correctly now and I’m really pleased with it. I realised what was wrong just before I went to sleep last night and just added the
Hi,
Thanks for the sample code Sandor, I’ve now got it working correctly now and I’m really pleased with it. I realised what was wrong just before I went to sleep last night and just added the
|
By
Dave
·
#540
·
|
|
Re: NSCondition
Dave,
Using NSCondition this is how I had envisioned it done. Note difference in enclosing scope of the NSCondition and loops in the processing of the objects to be consumed...
Sandor
Dave,
Using NSCondition this is how I had envisioned it done. Note difference in enclosing scope of the NSCondition and loops in the processing of the objects to be consumed...
Sandor
|
By
Sandor Szatmari
·
#539
·
|
|
NSCondition
Hi All,
I’ve almost got my threaded Consumer/Producer Working using NSThread and friends. However, under certain circumstances, I’m getting objects “stuck” on the queue and the Consumer thread
Hi All,
I’ve almost got my threaded Consumer/Producer Working using NSThread and friends. However, under certain circumstances, I’m getting objects “stuck” on the queue and the Consumer thread
|
By
Dave
·
#538
·
|
|
Re: string pointer
Yes, it has to do with autorelease, but there are usually options for getting a non-autoreleased version, e.g. usually an init method to create it, however you are (were) stuck with an released
Yes, it has to do with autorelease, but there are usually options for getting a non-autoreleased version, e.g. usually an init method to create it, however you are (were) stuck with an released
|
By
Dave
·
#537
·
|