Search results for

column

2,048 results found

Post

Replies

Boosts

Views

Activity

Reply to SwiftUI NavigationSplitView on macOS: unwanted vertical space in detail column
Thanks @Starfia, this appears to be a bug. Thanks very much for confirming that – at least it quiets my indecision about how to proceed. That advice just gives me a Content View that conforms to the detail column's resizable area, though, so I don't think it gives me the fixed-sizedness I'm looking for. The closest I've been able to come has been to hard-code the frame of the Navigation Split View itself, but that involves knowing the combined height of all views I might add to the detail column at all times (alongside which the unwanted safe area propagation persists), so it's a whole undertaking. I think for this iteration, I just have to avoid using NavigationSplitView or the Inspector; I have to implement alternatives to those provided functionalities, but the layout issues disappear the moment I sidestep them.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’24
Reply to Need help for generics and extension
What I mean is that, if you have other code in the same file as your struct definition, you could do something like this:var a2 = Array2D(nbRows: 1, nbCol: 1, repeatedValue: true) a2.nCol = 5 a2.nRows = 5Because the private keyword only restricts access from code in other source files. Now, the nCol and nRows properties and the colCount and rowCount functions do not indicate the actual size of the array, and the row and column functions will crash.If you have the struct definition in it's own source file with nothing else, it won't be a problem.As I mentioned, to make sure even code in the same source file can't mess things up, you could use read-only computed properties and get rid of the colCount and rowCount functions.struct Array2D<T: Equatable> { var matrix : [[T]] var nRows: Int { return self.matrix.count } var nCol : Int { if self.matrix.count > 0 { return self.matrix[0].count } else { return 0 } } Also, your row and column functions should check to make sure that the index v
Topic: Programming Languages SubTopic: Swift Tags:
May ’16
Reply to UITabBarController is unsupported as viewController
I have a Tab bar Controller with 4 view controllers and have also had this issue UITabBarController is unsupported as viewController for -[UISplitViewController setViewController:forColumn:] in Primary column since Updating to Xcode 12.... I've tried to change the behaviour back to Classic... but not sure how I do this? or is there a better way to solve this? :) Thanks
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’20
Reply to How SwiftUI Table sorting works ?
Question 1 : I want to be able to sort by all the columns. How many KeyPathComparators should be in the sortOrder array? Surprisingly, a single comparator works for all columns . Question 2: What is the value of newOrder? Is it same as the sortOrder? What does it contain? You get the same behaviour with this: .onChange(of: sortOrder) { _ in people.sort(using: sortOrder) } . Question 3: sortOrder contains the comparator for only givenName. How does the above code able to provide sort functionality for all the columns? Same as question 1 ? I found this tutorial interesting. https://www.kodeco.com/books/macos-by-tutorials/v1.0/chapters/4-using-tables-custom-views And changed your code to make it work better (immediately change rows when tapping another column header) struct Person: Identifiable { let givenName: String let familyName: String let emailAddress: String let id = UUID() } private var people = [ Person(givenName: f1, familyName: Bob, emailAddress: xbob@ example.com),
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to I,have,a,problem,registering,my,phone,device.,I,have,two,already,registered,using,the,Identifier,number,but,i,am,trying,to,register,another,phone,and,its,asking,for,the,DID...where,as,the,previous,two,phones,it,asked,for,the,Identifier....the,Identifier,i
I think it has always been UDID, although they may show the word Identifier instead of UDID in some places. For example, when I go to the Certificates, IDs, and Profiles page for my account, then click one of the choices in the Devices category, the list shown has Identifier as the title of the second column, but the numbers are all UDIDs.
May ’16
Reply to Apple Quick Start Program
Hi, TomerTzi! You can apply here: https://developer.apple.com/programs/universal/ . And remember to read Eligibility column. Also reading 'Universal App Quick Start Program terms and conditions' (on the same web page) is highly recommended. All the best, Alex
Jun ’20
Reply to Illegal NSTableViewDataSource
Hello Claude31:I am not clear how to use the cell Identifier rather than the column Identifier in Code. lastName, firstName, middleName are members of the entity: Registration so I can use:cell.textField?.stringValue = registration.firstName ?? FNCellIDBut I don't understand how to use the cell ID otherwise.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’20
Reply to Tabbing between cells in view-based table views
Yes, I noticed the tab behaviour is even worse on Sierra. I spent an hour this week overrding the standard behaviour in an NSTextField subclass for use in tables to get better behaviour. I've overridden -textDidEndEditing: looking for the tab or back tab text movements. Then I look up the ancestor chain for the table view, get the row and column for the text field and iterate over subsequent columns and rows looking for the next editable text field in there, giving it first responder status if I find one, otherwise falling back on default behaviour. It's not a particularly elegant solution, but at least it works and doesn't seem completely random like the built-in behaviour.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’16
Reply to New Product Type Identifier - 3F? in App Sales Report
Me too, and today they answered:We've made some updates to Sales reports to now show redownloads, and information on the device used. Additionally, there are some changes to Product Identifiers to support tvOS.The new device column shows where your app was purchased, updated, or redownloaded. Values include Apple TV, iPad, iPhone, iPod touch, and Desktop.The supported platforms column denotes which platforms your app supports. Values include iOS, tvOS, or iOS and tvOS.We also added redownloads to your reports. These are indicated by new Product Type Identifiers:3: Redownload of iPhone-only, or iOS and tvOS app (excluding iPad-only)3F: Redownload of Universal app (excluding tvOS)3T: Redownload of iPad-only appF3: Redownload of Mac app
Oct ’15