Search results for

column

2,078 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
941
Jun ’24
Reply to How SwiftUI Table sorting works ?
Still not completely clear to me. Lets say I click on Family name column, what happens next? Does the value of sortOrder variable change if I click on Family name column? If yes, what will be the new value? Also, how can I use custom Comparator for different columns?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to This class is not key value coding-compliant error
It crashes on the return from NSTableViewDelegate code. if let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: cellIdentifier), owner: nil) as? NSTableCellView { cell.textField?.stringValue = text print(cell.textField?.stringValue) return cell. ---> Crashes on this return for Column 7 } return nil }t---> Last Line of Code before crash Below is the output from the print statement I added. As you can see it crash after Column 7.. Optional(1) ---> Column 1 Optional(adf) ---> Column 2 Optional(test) ---> Column 3 Optional($450.00) ---> Column 4 Optional(Tax) ---> Column 5 Optional(3) ---> Column 6 Optional(Nov 01 2020) ---> Column 7 2020-11-12 06:32:57.660181-0600 PayMe[13901:179547] [General] [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key itemUsed. 2020-11-12 06:32:57.667836-0600 PayMe[13901:179547] [General] ( 0 CoreFoundation 0x00007ff
Nov ’20
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 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 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 Unable to install app on 9.2.1
If you plug the device in to your Mac and view the console output in Xcode while installing, what errors do you see? (In Xcode, Window > Devices, choose device on left column, look at the bottom part of the right column. You may need to click the upward pointing triangle in the bottom left corner of the right hand column to show the console output.)
Feb ’16