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?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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
Is it possible that I bypass tableView.makeView so that I can create a NSTableCellView on the fly (based on some logics)?
func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {
if NSTableColumn.identifier.rawValue == "labelColumn" {
let myCellView = NSTableCellView()
myCellView.textField.strinValue = "label text"
return myCellView
} else {
let complexView = loadFromNib() // of NSTableCellView
// populate complexView
return complexView
}
}
I calculate cell view's width in func tableView(_ tableView: NSTableView, sizeToFitWidthOfColumn column: Int). I have a need to resize the tableview's width to just match total width of all cell views' (without scrollbars).
But it seems changing tableview's width does not work:
tableView.bounds.size = CGSize(width: w, height: tableView.bounds.height)
I suspect that I should change its clipping view or enclosing scrollview, but don't have any idea on this.
Any help?
I accidentally removed the Fixed Width preset item in the font panel (by dragging it out).
Is there any way to get it back?