Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

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
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
947
Jun ’24
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 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
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:
Replies
Boosts
Views
Activity
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
Replies
Boosts
Views
Activity
Nov ’20
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
Replies
1
Boosts
0
Views
947
Activity
Jun ’24
In Apple OS 10.15 Beta using Apple Mail how to get heading text for each email column?
In Apple OS 10.15 Beta using Apple Mail how to get heading text for each email column?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
401
Activity
Sep ’19
Reply to NSOutlineView with 2 columns
Did you read this tutorial to see what is possible ?h ttps://www.raywenderlich.com/1201-nsoutlineview-on-macos-tutorialWhen you speak of columns, do you speak of the OutlineView predefined columns ?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’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:
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Sections in SwiftUI Tables?
AFAIK, not directly in Table. When there are multiple columns, would you have section for a specific column or for all ? It is possible in List. Cen you adapt your code to use List instead ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
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:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Apr ’24
Reply to NSTableView Selected Columns Not Highlighted
I have meet the same issue. allows column selection and click to select a column and never highlighted. Do you still have this issue? Will appreciate it for tell me some helpful information. @gatera
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to Refreshable lists with 2 columns
this is my implementation so far :) ScrollView { LazyVGrid(columns: columns) { ForEach(self.model.data) { feature in FeatureRow(feature: feature, cover: feature.firstPicture) } } }.refreshable { self.load() } .onAppear { self.load() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
If the first column of NSOutlineView is set to hidden, drag row data to apply crash
After testing, NSOutLineView's outlineTableColumn property defaults to the first column, and when it is set to hidden, dragging data causes a crash. This is supposed to be a bug inside NSOutLineView. Hope apple engineers can help check it out crash报告.txt
Replies
0
Boosts
0
Views
810
Activity
Jan ’23
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:
Replies
Boosts
Views
Activity
Oct ’23