I believe starting from version 15, Developer Documentation is broken in several ways (at least for me).
Quick Help pane shows meaningless header information about many classes:
Reveal in Navigator does not work in most cases:
For example stringWithFormat:
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I tried \s+$ to find trailing spaces, but it seems the IDE code editor behaves strangely - it locates random lines that obviously has no trailing spaces.
Did I misunderstand regex in the editor?
I always get the following debug messages when I debug a simple test app:
2021-02-03 06:27:08.068287+0800 objcapp[4385:33065] Metal API Validation Enabled
2021-02-03 06:27:09.530861+0800 objcapp[4385:33767] Errors found! Invalidating cache...
2021-02-03 06:27:09.970280+0800 objcapp[4385:33767] Errors found! Invalidating cache...
2021-02-03 06:27:10.899920+0800 objcapp[4385:33065] VPA info: plugin is INTEL, AVD_id = 1080004, AVD_api.Create:0x112d415d7
2021-02-03 06:27:10.971477+0800 objcapp[4385:33065] VPA info: plugin is INTEL, AVD_id = 1080004, AVD_api.Create:0x112d415d7
2021-02-03 06:27:10.991057+0800 objcapp[4385:33065] VPA info: plugin is INTEL, AVD_id = 1080004, AVD_api.Create:0x112d415d7
This began a few versions ago of macOS updates/upgrades. Is there any way to get rid of these messages? They are really interfering my focus on coding and debugging.
I once enabled locate (not location) service but now I want to disable/remove it. It's really not very helpful compared to spotlight.
What is the correct commandline?
I have a custom view that acts as a container for many NSImageViews that will be created dynamically on the fly.
When the container view is resized (by parent window), some new subviews may be created and added to the container view, or some subviews may be removed because they are not fit into a smaller view.
I have two ways to handle the 'disappearing' subviews. One way is to hide them, the other is to remove them from the container view.
My concern is that - Is there a (big) performance difference between the two methods? Which is better?
I did searches on the Internet but could not find a definitive answer. The best thing I get is CGImageSourceCreateThumbnailAtIndex API function. But I don't know how create CGImageSource out of an NSImage object. Thanks for any suggestions.
I am aware of the following approach:
Add a custom view into a view in IB.
Set the class of this custom view, say "MyDatePickerView".
Now my datepicker view has a moderate complex UI, and I want to isolate its functionalities into a standalone XIB. Is it possible to do this in IB (I know I can do it in code)?
I really like to implement an overlay that is similar with what we have in NSDatePicker:
I know most of the time, we just use what Apple gives us behind the curtain, but I really want to know if this even possible. Thanks!
Xcode 14.2 is really crap.
I cannot find the Preview function as what I have in previous version. I cannot find this menu item:
I have not upgraded to Ventura yet. Yesterday one of my user (of one of my apps) mentioned that he has no Python environment on Ventura. Is it true?
I am reading "Managing Strings Files Yourself".
Now the question arises in my mind. Is it possible to add new localizations using ibtool (or alike)?
The reason I have this question is that I have a plan to build an app to automate strings localization so that I will be freed from tedious and repetitive work on translation.
I got a few answers from SO, but the tools are too old and they don't even run my macOS (12.6).
Is there any official way to extract an Assets.car file?
The reason I ask this question is that I want to re-use the icons for strings/storyboard files in Xcode packaged Assets.car (if it's legal).
Can anyone give any clues about how the navigation bar is implemented like below?
I have the following code:
extension FileHandle {
func readInto(_ buffer: inout [UInt8]) -> Int {
buffer.withUnsafeMutableBytes {
Darwin.read(fileDescriptor, $0.baseAddress, $0.count)
}
}
}
It can compile, but I wonder if this is supported since it's code in an app that is going to be submitted to App Store.
The reason I don't use read(upToCount:) or readData(ofLength:) is that I am reading possibly very large files by small chunks and don't want to let Swift runtime allocate small buffers repeatedly.
I have used URL like "macappstore://itunes.apple.com/app/idxxx" in my apps for several years.
Just curious to know if there is any update from this URL scheme? I believe iTunes is not app specific any more (or I am wrong).
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store
App Store Connect