Search results for

column

2,071 results found

Post

Replies

Boosts

Views

Activity

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 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 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 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
Reply to Remove gap between lazyvgrids in vstack
Yes, between those two lazyVgrids. I ended up adding negative padding right after the closing } of the first lazyVgrid and it removed the gap. .padding(.bottom, - 7.5) As far as a screen shot I know how to cut out a section with shift + command + 4. When I select the paper clip below and add image I select the associated png file from my desktop but I do no see it appear in this box. I clearly do not understand how to do it. Below is the section of code that includes the two lazyVgrids and the added padding. Thank you for giving me the heads up on paste and match style. It sure looks a lot cleaner. Regards, Chris LazyVGrid( columns: columns, alignment: .center, spacing: 0) { ForEach(0..<1) {row in ForEach(0..
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to NSTableColumn compare selector
Depending on exactly what data you have and what you want to achieve, you can use -localizedStandardCompare:. This sorts just like the Finder would, which typically includes numeric sorting.I would have expected the sort descriptor that you showed, using a comparator block, to work. Are you sure you set it at the right time? How was columnArray populated? Generally, you should find columns by identifier, not index, since tables can reorder columns or have hidden columns.If you can't get that to work for some reason, you can create a category on NSString with a new comparison method. Be sure to put a unique-to-your-project prefix on the method name so it will never collide with an actual method on NSString, now or in the future. Have it just return the result from -compare:options: (or -compare:options:range:locale: with the locale specified, for locale-appropriate sorting), like your comparator block does.
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’15
Reply to Constraints between a UITableView and a UITableViewCell
What do you mean by columns? Do you mean the text in the section headers? If that's what you mean you could make your own custom section headers that positioned their content a certain way and then make your cells do the same. Anyway, I don't think you can create constraints from anything inside a cell to anything outside the cell, at least I don't think it would work.
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’15
Reply to Core Data Error with NSDate
That's a problem of DB Browser, which I have never used. I guess that tool is showing the internal representation of `NSDate`/`Date`.Maybe you can find some settings for showing timestamps or dates.If you want to know how to display the `date` column as `dd/mm/yyyy` in your app, I (or some other reader) can be some help.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’19
Reply to Issue with Keychain sharing in Mac
The creation part works perfectly fine and I can see the key … in the keychain. You mean in Keychain Access, right? If so, where in Keychain Access? What does the Keychain column show for this item? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’20
Reply to Release Notes for SwiftUI Tutorials
There's a typo in Handling User Input, Create a Favorite Button for Each Landmark step 3. It says In LandmarList.swift, and turn on the live preview. I believe and wasn't meant to be there.The video for this step isn't visible when the browser is narrow and the page goes into single column view.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’19