Search results for

column

2,047 results found

Post

Replies

Boosts

Views

Activity

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 [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 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 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
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
Reply to SwiftUI charts, how do I align these X axis labels correctly?
Look at your image and imagine there's a blue column immediately to the right of every red column. Now, the x-axis labels look like they're in the centre of the two columns. So, is your chart supposed to have two columns for each value? If not, in this line: AxisMarks(position: .automatic, values: shownXValues) { val in can position: .automatic be changed to something else? Also, is .useAppFont() a SwiftUI thing, or something you've written yourself? I've never seen it before.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’24
Reply to NavigationSplitView
For column one I setup an enum enum Nav: String, Hashable, CaseIterable and the cases are the different Entity names. And then use a list to display them. For column two I'd need a way to show the ListView() for whatever Entity name was selected from column one. And then the third column you show the DetailView() of the selected ListView() item. I guess is my sudo way of thinking about how it should work. But maybe that's not a great way of how you'd go about it?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
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 Illegal NSTableViewDataSource
It is normal delegate is not called when 0 row. But as soon as at least 1, should be called.Your code is wrong:extension RegistrationReportsViewController: NSTableViewDelegate{ func configureCell(cell: NSTableCellView, row: Int, column: Int){ let registration = fetchedResultsController.fetchedObjects! [row] print (Start NSTableView Delegate) switch column { case 0: cell.textField?.stringValue = registration.lastName ?? case 1: cell.textField?.stringValue = registration.firstName ?? case 2: cell.textField?.stringValue = registration.middleName ?? default: break } func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView?{ let cell = tableView.makeView(withIdentifier: (tableColumn!.identifier), owner: self) as? NSTableCellView let column = tableView.tableColumns.firstIndex(of: tableColumn!)! configureCell(cell: cell!, row: row, column: column) return cell } } }Look, viewFor is defined inside configureCell.So it is not vis
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’20
Reply to Schema to collect event signposts
Perfect! Thanks for the pointer. I'm finally starting to grasp the documentation a bit and ended up using slice.Something like this seems to work:<list> <title>List: Writes</title> <table-ref>writes</table-ref> <slice> <column>event-type</column> <equals> <event-type>Event</event-type> </equals> </slice> <column>name</column> <column>message</column> </list>It seems like maybe there's a way to filter in create-table using the attribute element but it keeps telling me that event-type is not an attribute of the os-signpost schema (perhaps it's a column and not an attribute, not sure I fully grasp the terminology yet). I'll take a look at a custom modeler as shown in your final advanced example to better filter based on the message.I think it'd be useful to have some type of model generator (os-signpost-point-schema?) for these events where a p
Jan ’19