Search results for

column

2,071 results found

Post

Replies

Boosts

Views

Activity

How to animate NavigationSplitView's detailView column.
Having a traditional 'NavigationSplitView' setup, I am looking for a way to animate it the same as the sidebarView, where there is a button to toggle and it animates by sliding out from the right side of the view, however the closest I have gotten was manipulating the 'navigationSplitViewColumnWidth' but that always results in the view instantly appearing / disappearing. I am using SwiftUI for a MacOS specific app. Here is just a general idea of what I am currently doing, it is by no means a reflection of my real code but serves the purpose of this example. struct ContentView: View { @State private var columnWidth: CGFloat = 300 var body: some View { NavigationSplitView { List { NavigationLink(destination: DetailView(item: Item 1)) { Text(Item 1) } NavigationLink(destination: DetailView(item: Item 2)) { Text(Item 2) } NavigationLink(destination: DetailView(item: Item 3)) { Text(Item 3) } } .navigationTitle(Items) } detail: { VStack { DetailView(item: Select an item) Button(action: toggleColumnWidth) { Text(co
1
0
940
Jun ’24
Reply to This class is not key value coding-compliant error
I added a 8th column with new identifiers, change the viewController code to match this new column and it also crashes. Did you add the new column as a last one, and it crashes at the 7th or this new 8th ? You could also try to add a column before the 7th. I don't think there is any issue here, but could you print the numberOfColumns of the tableView ? PS: if you can post the full project somewhere or post for a few minutes your mail here, we could exchange files so that I I can test more extensively. Maybe there is an issue in storyboard or a xib file, but hard to say without out inspecting.
Nov ’20
Reply to macOS Monterey Xcode Update Questions (New Warnings)
I am getting the same new warning (Column selection is not supported ...) when I build on Monterey (2019 iMac). I have a custom NSTableView which contains 3 columns (all are text, two are hidden) that gets the warning. Nowhere in the code do I do anything to select a column. It does select rows, and it does do drag & drop. I have no clue why that warning is being given.
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’21
Reply to What's the unit in NSView coordinate system
Maybe my question is too general. I have a need to calculate all width of an NSTableView. However, I found that total width of all columns is far less than NSTableView.bound.width: let width = tableView.tableColumns.reduce(0) { ac, col in ac + col.width } print(width, tableView.bounds.width) This is true even I manually adjust last column so that it fills the gap between the column and tableview right border. -----------| <- table right border last column| -----------| So I assume NSTableColumn.width and NSView.bounds.width are using different units.
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’24
Reply to What is the appropriate Create ML data shape for my use case?
As far as I understand your post, I'd approach and try it in the CreateML in the following way: CGPoint is a struct and can be initialized with doubles or ints or cgfloats. Assuming double, I would suggest that you create a column for touch locations as X1 ,Y1, X2, Y2, Y3, Y4 in series, and last column as your target (ellipse, triangle, rectangle). Each row will be your series of touches and the number of columns will be equal to the longest of your series. The shorter series can have 0 in unused columns.
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Jan ’21
Reply to [bug report] Unicode characters with "variation selectors" are not rendered in the iPhone Safari browser (webkit) with iOS 17.3
This isn't working for the Variation Selector-15 (U+FE0E) for all the characters. Can you please apply that variation selector to all your Unicode characters? I) Steps to reproduce the issue: navigate in safari to the page https://eurovot.com/vs.htm II) Expected result: as the 1st column of characters have the Variation Selector-15 (U+FE0E) applied, and the 2nd column have the Variation Selector-16 (U+FE0F) applied, the first column should always display orange characters and the second column emoji characters. III) Error result: some characters are working fine in the 1st column and displayed as text in orange colour, but some other aren't displayed as text, but displayed as emojis instead.
Topic: Safari & Web SubTopic: General Tags:
Apr ’24
Reply to vLookup In App?
Additionally, how does the array formatting go?Why would row 1, column 2 be 6? Are columns horizontal, and rows vertical here? Also, is there a 3-number limit per row of code? If I add a 4th number to each row, it still returns 6.SO confused regarding the order. It makes zero sense why the rows/columns aren't logically ordered.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’16
how to change NSOutlineView or NSTableView column header font?
is it really impossible to do this?I tried changing it form the xib designer view and it just reverted back to System font size 11so I tried overriding the header cell, and put my custom font directly to theclass MyTableHeaderCell: NSTableHeaderCell { let customFont: NSFont = NSFont.systemFont(ofSize: 13) // setting the custom font to use on the header cell override func drawInterior(withFrame cellFrame: NSRect, in controlView: NSView) { var mutable = NSMutableAttributedString(attributedString: attributedStringValue) mutable.removeAttribute(.font, range: NSRange(location: 0, length: mutable.length)) mutable.addAttribute(.font, value: customFont, range: NSRange(location: 0, length: mutable.length)) attributedStringValue = mutable super.drawInterior(withFrame: cellFrame, in: controlView) }}this would work most of the time, but sometimes when I move/resize the columns around I would get a crash due to the font's _sharedFontInstanceInfo being nil. _sharedFontInstanceInfo is a private property of NSFontI
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1.4k
Oct ’18
Reply to Xcode 14.3 - Multiple commands produce swiftsourceinfo
Here's how I fixed it... Select your Extension target and go to Build Settings Search for module and look for Packaging -> Product Module Name. You'll probably see that the Resolved column is showing the same name as your main target. Type a unique name in the middle column (the column is titled WidgetsExtension or whatever your extension target is called) You should see that the Resolved column now shows the unique name you entered. It should hopefully build now.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23