Search results for

column

2,078 results found

Post

Replies

Boosts

Views

Activity

NSTableView Selected Columns Not Highlighted
All:Similar to this post, I've created a view controller scene in a macOS app to which I've added a stock NSTableView. I've changed nothing, meaning it has regular highlighting, allows column selection. Even though I can click to select a column and get that selected column index in code, the selection is never highlighted.I'm using Xcode 8.2.1 with a newly-created document-based macOS application project. I do nothing to the table view (aside from asking it to reloadData() ) in code. The standard project's setup means the root view of this view controller (the window's content view controller) is layer-backed. I've tried deleting and re-adding the table view, tried toggling highlighting and column selectability (including toggling allows multiple) in code and in IB, but nothing seems to be working. I find this ... extremely odd after years of Cocoa development (admittedly, on apps that support much older verisons of OS X).Any suggestions?
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
806
Mar ’17
NSBrowser Prevent Empty Selection in Column that is > 0
So there's the allowsEmptySelection property, which I have set to NO.This prevents empty selection in column 0 it seems. Now let's say I have a fairly simple model and my browser only has 2 columns, and there must be a selection in both columns at all times. When changing the selection in column 0, column 1 pops out with no selection. I'm not sure if there's a better way to do this, but I autoselect row 0 in column 1 within:-(void)browser:(NSBrowser*)browser didChangeLastColumn:(NSInteger)oldLastColumn toColumn:(NSInteger)column //check if column is column 1...if it is, ensure atleast 1 value is select. Every entry in column 0 has at least 1 child.The code is a little ugly but I can tolerate it. Now another thing I have to do is track the current selection in column 1, and if the user clicks the background in column 1 (which will empty the selection in column 1) I have to deny it within:-(NSInd
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
319
Jan ’17
Sticker sizes vs number of columns in iMessage
When I test my sticker packs in the simulator/on my phone, the automatic size of the sticker changes in regards to the number of columns I have selected in Xcode. So if I have selected 2 columns and run a test, the automatic size of my sticker when I peel and stick it is much bigger than the automatic size if I have chosen 4 columns. However, if I send the same sticker in the body of the text message, it shows up the same size (larger) regardless of whether I have used 2 columns or 4 columns. I know there user can scale the stickers when they are placing them, but is there a way for the automatic size in 4 columns to be the same as in 2 columns and in the body of the text?
0
0
665
Nov ’17
Finder Favorites Column width issue
10.11 seems to have an issue with setting too narrow of a column width for the leftmost column (Favorites, Devices, Shared, ...) when opening Finder. This issue only occurred since loading El Capitan, never prior.It is so narrow that it displays like:Applica...Docum...Downlo...Anyone else seeing this?
12
0
841
Jul ’15
.navigationViewStyle(.columns) doesn't work
Hi, I'm trying to do basic app with fixed Navigation View on iPad. Doesn't work. What am I doing wrong? import SwiftUI struct CollectionView: View { var body: some View { if #available(iOS 15.0, *) { NavigationView { Text(Hello) .navigationTitle(Hello) } .navigationViewStyle(.columns) .padding() } else { // Fallback on earlier versions } } } struct CollectionView_Previews: PreviewProvider { static var previews: some View { CollectionView() } }
1
0
527
Oct ’21
multiple columns swift 4
Is there a way to create a UITableView or a UIVIew that I can utilize mutliple columns? I am making a custom application for a data analysics colleage at my job who would like to display mutliple colums within a single view whether it is a UITableView or a UIView. The only options he could think of is creating an image from the results of a database query or creat a website and use the UIWebKit to display the information.Thank you in advance.
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
5.6k
May ’18
Fit SwiftUI grid columns to the contents
My grids expand widthways to take up all the space it can. I can stick it in a frame and limit the size. But is there a way to get the columns to shrink to fit the contents plus padding? That would be neater, and probably more robust if the text changes size. FWIW most of my grids contain only text, and I don't use a lot of columns.
1
0
1.5k
Oct ’22
NSPredicate for NSNumber column
Probably something simple I'm missing, but I'm trying to write a very simple predicate - return all rows from a table where an NSNumber column value = 3.I've tried many variations of the following with no success:NSPredicate *predicate = [NSPredicate predicateWithFormat:@correct_number = %@, @3];NSPredicate *predicate = [NSPredicate predicateWithFormat:@correct_number == %@, @3];NSPredicate *predicate = [NSPredicate predicateWithFormat:@correct_number = %@, @3];NSPredicate *predicate = [NSPredicate predicateWithFormat:@correct_number == %@, @3];Can someone help me to recognize the rror of my ways, please?Thanks in advance!
5
0
2.4k
Oct ’15
UISplitViewController Column Style and Compact Mode
Hey, I'm trying to get a handle of the new column style split view controllers. I find the documentation and related WWDC videos a little lacking when it comes to the details. Pushing a detail view controller When using showDetailViewController in compact mode everything works fine the first time. But if the user goes back to the root and taps another item to push a show a new detail the previous detail view appears between the new detail and the root. Ie. I have to tap back twice to get back to the root because the first detail view shows on the first back tap. So to fix this I need to become a navigation controller delegate, listen for pops and make sure I clean up the detail view controller's navigation controller to remove all of it's children. Because apparently pushing a detail view actually pushes the detail wrapped in a second navigation controller. I assume this is some implementation detail to make it work in column mode. This seems like a bug and a hacky fix. Transitioning to Comp
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
776
Jan ’21
Setting column-count to 1 disabled horizontal scrolling
I have a simple CSS to emulate iBook-lile layout:* { box-sizing: border-box;}html { height: 100%;}body { height: 100%; padding: 2em; font-family: 'Gentium Basic', serif; column-count: 2; column-gap: 4em;}h1, h2, h3, h4, h5, h6 { font-family: 'Unica One', cursive; text-align: center;}.title-display { margin-bottom: 6em;}p { text-indent: 2em;}I need to create a layout with horizontal scrolling only. So if column-count is 2 or bigger - everything looks fine.The page scrolling only horizontaly, and I could scroll my layout with JavaScript.The example is here: http://codepen.io/fredy26/pen/QjgZEPBUT! If i trying to change the amount of columns to 1, by setting column-count: 1; everything breaks. All text is placed inside one column with vertical scrolling. To compare, Chrome is working fine.
1
0
1k
Oct ’15
Correct way to handle 2 to 3 column switch
I'm using a NavigationSplitView on macOS which needs to show 2 or 3 columns depending on the selection of the sidebar. Column 1 has a list of main activities. Some of these just have some data to show and some have a sublist. Currently, when an item that has no sublist is selected, I set the 2nd column (content:) to: Spacer() .navigationSplitViewColumnWidth(0) This works, although it started hitting bugs requiring a workaround on macOS 26, which got me wondering, what is the correct approach here? NavigationSplitViewVisibility.doubleColumn is not the solution, as this hides column 1, not column 2.
Topic: Design SubTopic: General Tags:
0
0
827
Oct ’25
NavigationSplitView two and three column interfaces in the same app
I am currently learning to create multiplatform applications using SwiftUI and NavigationSplitView, and I faced the problem of arranging different Views in the same App. Let's open the default Notes application, and here, we can see a switch between two and three-column views of the content. So my question is, how to arrange this kind of view for different App pages using NavigationSplitView? First page has two columns interface Second has three columns
3
0
4.0k
Aug ’22
Is it possible to use a list-style UICollectionView but have multiple columns?
I'm working on a UICollectionView that has a custom compositional layout with multiple columns. I wanted to add swipe actions to the cells (specifically, a delete action). I knew this was possible because of the existence of trailingSwipeActionsConfigurationProvider but I didn't realize that this is only for list layouts, created with UICollectionViewCompositionalLayout.list. But if I use a list layout, I don't think I have any opportunity to add multiple columns. Do I really have to choose between multiple columns and trailing swipe actions? Or is there some way to get both?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
512
Jul ’24