Search results for

column

2,050 results found

Post

Replies

Boosts

Views

Activity

Reply to UISwitch in tvOS
I wish I could post screenshots. Basically I have a Settings dialog in my app that uses a bunch of yes/no switches. I put all the options in a column from top to bottom: MUSIC: ON/OFF, REDUCE MOTION: ON/OFF, etc. All of the ON/OFF switches are done as UISegmentedControllers, but the catch is that you can't move focus horizontally with those, or it changes the switch's on/off value. But, you can move up and down, so I simply put all those settings in a column so the user only has to move up/down to select the setting that they want to change.-Brian
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to How to remove all columns from NSOutlineView?
Hmm, interesting.In the scenario you describe, I think I'd be inclined to try replacing the entire sub-hierarchy from the scroll view. Specifically, I'd put a starter outline view (along with its scroll view) in a nib, and load the nib each time I wanted a fresh start on the outline view.(I'm not a big fan of creating UI elements programmatically, but you could create this sub-hierachy in code, too.)The other choice would be to never remove the outline column, but just reconfigure it for your new column layout.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’18
Reply to Apple News landscape mode gone in iOS 12?
I'm a lefty and have this nifty workaround. After opening News in landscape, slide up the Dock and drag a second app to the right third of the screen. This will switch to Split View with News using the left two-thirds of the screen, showing only news items (no channel list). The result is you can scroll the news with your left thumb.As a bonus, I put the App Store on the right side, so it appears as a single-column list (which I like much better than the messy two-column scheme).
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’18
Reply to NSTableView: dynamic columns
So, back to what I said before. When you have a cell in a XIB file, you must register the name of the XIB using NSTableView's register(_:forIdentifier:) method before is populated with data. This is typically done in some viewDidLoad method.In your particular scenario, the difficulty comes from managing the cell identifier property, which controls the reuse of existing cells. In your tableView(_:viewFor:row:) method, it doesn't actually matter what your table column identifier is, so long as you use it to choose a cell with a suitable cell identifier. The default is to have them match, because it's easier to keep track of them that way, but it doesn't have to be so.However, in that delegate method, when you invoke makeView(withIdentifier:owner:) specifying a cell identifier that has your XIB file registered against it, the actual cell must have that same identifier. (Otherwise, the documentation says, makeView(withIdentifier:owner:) will return nil.) In case you're keeping track, we're now up to 3 fl
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’17
Reply to macOS SwiftUI Table with contextMenu
Did you try to use GeometryReader ? GeometryReader { geometry in NavigationView { Table(items, selection: $selection, sortOrder: $items.sortDescriptors) { TableColumn(Column 1) { Text(Item at ($0.name!)) .contextMenu { Button(action: {}) { Text(Action 1) } Divider() Button(action: {}) { Text(Action 2) } Button(action: {}) { Text(Action 3) } } } TableColumn(Column 2) { Text($0.id.debugDescription) } } .frame(width: geometry.size.width, height: geometry.size.height) // Need to adapt the correct frame to the width of column1
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to Instruments: what is static AppName.$main() [inlined]
I submitted FB12211784 the end of May. It contains a do-nothing-much app that creates a two column table of 10K entries. Selecting an item in the table causes the color of the text in the first column to change. On my 2019 intel iMac there is about a 140 msec delay between selection and the color change. That is noticeable. I just re-ran the code using a brand new Mac Studio with M2 Max. It still takes over 100 msec. Still noticeable.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’23
Reply to Duplicate output with multiple arraycontrollers in a single tableview
It sounds like this is a cell-based table view (each of the columns is bound to …). If that is so, there's a little bit of secret sauce that we normally don't think about. It's the table view that has a content binding to the array controller, not the columns. Normally, you specify the columns as if they are bound all the way through to the model, but the first such binding (according to the documentation) also sets the table content binding (and, I assume, the table view massages the binding between it and the column to be relative to its own bound content).That means you can't bind different columns to different content — which gets bound first will win. Instead, you'll need a single array of objects that have 2 properties, one for each column.But, really, don't use cell-based table views any more. Go with view-based table views. (If you've done that already, then ignore all this.)I strongly suggest you create a custom class to represent the data displayed in eac
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’16
Reply to After filling all fields I still get warning: "Complete test information is required to submit a build for external testing."
After a long correspondance with Apple Developer Program Support they finally told me that the yellow ! warning was just a general reminder that you need to fill out the whole page... Well... I find it quite misleading. And there are other strange peculiarities with the system: When I click on the specific build, the left column menu disappears, and I can't get it back. Not even by logging out and in again. But then I discovered that apparently the left column menu suddenly becomes an expand-/pulldown-menu just below the top menu line... This is a strange system - if you ask ME.
Apr ’21