Post

Replies

Boosts

Views

Activity

Comment on How stop Xcode from autogenerating application entitlement for dylib?
Thanks for your TSI support. I actually worked around this annoying thing by adding an empty entitlements files to my projects. Thank God! After 2 weeks of agony, I finally passed the review and a new version of my app was published in App Store yesterday. Dare me to say, Xcode 14.2 is really crap!!! Really hope Apple can release a fix version say 14.2.1.
Apr ’23
Comment on Get row index when user click a button in NSTableCellView
EDIT: Tag is simple, but it's readonly. I am just curious to know how to find the row of cell in the table?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’23
Comment on Is there any builtin Text Find Bar?
That's for iPhone. My app runs on macOS.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’23
Comment on How throw error in willSet
The special ! char denotes "Implicitly Unwrapped Optionals" which suits many scenarios.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Linker errors in Swift app with a framework bundle
It's already listed under the section with "Embed & Sign"
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on String interpolation produces a debug description for an optional value; did you mean to make this explicit?
The first method is tooooooooo verbose since I have to create an empty object. The second method is unsafe when obj is nil. What I wan is simple. print("object: \(obj)" should just print out either object: Lang:en name:(none) or object: or object: nil when the object is nil.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Does Swift has a string builder class?
It works, but strictly speaking append(String(format:)) does not equate to appendFormat because it creates an intermediate string object.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on JSONEncoder with dictionary of objects?
It's a bit strange that the old JSONSerialization works in the case.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Not able to reference classes/structs in Swift playground sources
That's really strange because in a normal Swift app, any class in any source file is implicitly "internal" and can be used without having to mark it as public.
Replies
Boosts
Views
Activity
Aug ’23
Comment on Where is the link to Swift language book (epub)?
Strange I don't have Book Store section. Maybe it's only available to English culture.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on How to force XCode 14.3 to install on Monterey
Okay, I found out the answer myself. Just a piece of AppleScript with 2 lines: log "Activating Xcode app..." activate application "Xcode"
Replies
Boosts
Views
Activity
May ’23
Comment on How stop Xcode from autogenerating application entitlement for dylib?
Thanks for your TSI support. I actually worked around this annoying thing by adding an empty entitlements files to my projects. Thank God! After 2 weeks of agony, I finally passed the review and a new version of my app was published in App Store yesterday. Dare me to say, Xcode 14.2 is really crap!!! Really hope Apple can release a fix version say 14.2.1.
Replies
Boosts
Views
Activity
Apr ’23
Comment on CFBundleIdentifier not match?
In this thread https://developer.apple.com/forums/thread/683911, someone claimed that he workaround the problem by manually archiving the app. How to do this manually?
Replies
Boosts
Views
Activity
Apr ’23
Comment on CFBundleIdentifier not match?
The bundle name is just "net.neolib.test" so simple that I couldn't make mistakes.
Replies
Boosts
Views
Activity
Apr ’23
Comment on No Info.plist in newly created project
That's just what I was looking for. I did not notice this new Info tab! It turned out that I did fall behind the line. I did not even know when Info.plist was moved/integrated into target info.
Replies
Boosts
Views
Activity
Apr ’23
Comment on NSStackView.distribution runtime question
Does anyone know where to download the official image of macOS 10.10? I can burn it to USB disk and install on a separate external USB drive.
Replies
Boosts
Views
Activity
Apr ’23