|
Re: struct return of nil
On Fri, 27 Apr 2018 11:57:15 +0700, Gerriet M. Denkmann said:
See also:
<http://sealiesoftware.com/blog/archive/2012/2/29/objc_explain_return_value_of_message_to_nil.html>
Sean
On Fri, 27 Apr 2018 11:57:15 +0700, Gerriet M. Denkmann said:
See also:
<http://sealiesoftware.com/blog/archive/2012/2/29/objc_explain_return_value_of_message_to_nil.html>
Sean
|
By
Sean McBride
·
#567
·
|
|
Re: struct return of nil
Yes:
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithObjects/WorkingwithObjects.html#//apple_ref/doc/uid/TP40011210-CH4-SW22
“Working
Yes:
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithObjects/WorkingwithObjects.html#//apple_ref/doc/uid/TP40011210-CH4-SW22
“Working
|
By
Quincey Morris
·
#566
·
|
|
struct return of nil
macOS 13.4; Xcode Version 9.3 (9E145).
This is (I believe) documented to work:
NSString *answer = …
if ( answer.length == 0 )
{
// works for answer = nil or answer = “” (empty string)
answer
macOS 13.4; Xcode Version 9.3 (9E145).
This is (I believe) documented to work:
NSString *answer = …
if ( answer.length == 0 )
{
// works for answer = nil or answer = “” (empty string)
answer
|
By
Gerriet M. Denkmann
·
#565
·
|
|
[OT] Experienced Freelance Mac and iOS Developer available
Hello All,
I’m looking for remote work on Mac and iOS.
I have over 25 years experience on the Mac and iOS since the first iPhone.
I’ve recently finishing a long contract where I gained a *lot*
Hello All,
I’m looking for remote work on Mac and iOS.
I have over 25 years experience on the Mac and iOS since the first iPhone.
I’ve recently finishing a long contract where I gained a *lot*
|
By
Dave
·
#564
·
|
|
Re: NSData base64Encoding vs. base64EncodedStringWithOptions
DOH. I think it’s time for me to update my glasses prescription.
Thank you.
DOH. I think it’s time for me to update my glasses prescription.
Thank you.
|
By
Alex Zavatone
·
#563
·
|
|
Re: NSData base64Encoding vs. base64EncodedStringWithOptions
I haven't tested this, but I would imagine that it produced no line endings at all (i.e., a string containing only base64 alphabet).
No it doesn't:
The enum defines a bit mask. The above declaration
I haven't tested this, but I would imagine that it produced no line endings at all (i.e., a string containing only base64 alphabet).
No it doesn't:
The enum defines a bit mask. The above declaration
|
By
Ben Kennedy
·
#562
·
|
|
Re: NSData base64Encoding vs. base64EncodedStringWithOptions
From the docs:
Discussion
By default, no line endings are inserted.
If you specify one of the line length options (NSDataBase64Encoding64CharacterLineLength or
From the docs:
Discussion
By default, no line endings are inserted.
If you specify one of the line length options (NSDataBase64Encoding64CharacterLineLength or
|
By
Alex Zavatone
·
#561
·
|
|
NSData base64Encoding vs. base64EncodedStringWithOptions
Xcode 9.2, iOS 11.2, Objective-C
Looking at the header for NSData, and base64EncodedStringWithOptions: NSDataBase64EncodingOptions,
the options are these starting on line 50 of NSData.h:
typedef
Xcode 9.2, iOS 11.2, Objective-C
Looking at the header for NSData, and base64EncodedStringWithOptions: NSDataBase64EncodingOptions,
the options are these starting on line 50 of NSData.h:
typedef
|
By
Alex Zavatone
·
#560
·
|
|
Re: Swift and KVC
Apparently Xcode has become Windows 95. When in doubt, reboot.
: /
Apparently Xcode has become Windows 95. When in doubt, reboot.
: /
|
By
Alex Zavatone
·
#559
·
|
|
Re: Swift and KVC
Xcode 9.x has an intermittent bug where it gets confused about what you’ve changed. (It looks like the actual displayed text is inconsistent with some internal memory representation.) It doesn’t
Xcode 9.x has an intermittent bug where it gets confused about what you’ve changed. (It looks like the actual displayed text is inconsistent with some internal memory representation.) It doesn’t
|
By
Quincey Morris
·
#558
·
|
|
Re: Swift and KVC
Perhaps I’m expecting too much from Xcode. I’d quit and relaunched in order to get output for the code I’d posted. I didn’t expect I’d have to quit and relaunch again because I changed one
Perhaps I’m expecting too much from Xcode. I’d quit and relaunched in order to get output for the code I’d posted. I didn’t expect I’d have to quit and relaunch again because I changed one
|
By
Marco S Hyman
·
#557
·
|
|
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
·
|