Search results for

column

2,052 results found

Post

Replies

Boosts

Views

Activity

Reply to Passing an array into struct
Thank you for your time 🙏🏻 This is what I have done in Playgrounds... var printCards = // No required if NOT printing the cards // Imported .csv file pasted in (var gameImport) below //////////////// var gameImport = 24,exam.dwindled.span,Short for examination,Reduced gradually in size,The total length of something from end to end,_ _ _ _ . _ w _ _ d _ _ d . _ _ _ n,16,///cracked.shadowed.private,The Vase was (?) when it toppled over,A part of the house is (?) by a tree every day,We like to talk in (?) when we want to keep it : secret,_ _ _ _ _ _ . _ _ _ _ _ _ . _ _ _ a t e,98,///spilling.dances.backbone,Causing or allowing liquid to flow over the edge : of its container,A series of steps that match the speed and : rhythm of a piece of music,The column of bones in the back which sustains : and gives firmness to the frame,_ p _ l l _ n . a _ c _ s._ a _ _ b _ n ,93,///inwards.habitat.buttered,Toward the centre or interior,Place where anything is commonly found,Covered or spread with butter, _ _ w _
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’22
Develop In Swift Explorations - Unit 1 Build
In Part 1 of Unit 1 Build Students must set up the project using the App template feature. On page 55 the viewer window shows in the left column a list of files that should be in the photo frame. These include: AppDelegate, SceneDelegate, ViewController, Main, Assets and LaunchScreen. I can see this on my computer, however when my students follow the same steps. They only see the files name ad ContentView What are we doing wrong?!
3
0
795
Oct ’22
Reply to Implementing a cursor on both a cell and a row while using NSTableView
I forgot to show how to call this func: func control(_ control: NSControl, textView: NSTextView, doCommandBy commandSelector: Selector) -> Bool { // 1. get row and column, multiplexed in sender's tag guard let textField = control as? TextField else { return false } let rowIndiv = textField.tag % (256 * 256) let colVar = (highWordTag - rowIndiv) / (256 * 256) selectedRowInDataTable = rowIndiv // a var of the class selectedColInDataTable = colVar // var of the class if commandSelector == #selector(NSResponder.insertNewline(_:)) { doMovement(.return) return true } if commandSelector == #selector(NSResponder.cancelOperation(_:)) { doMovement(.cancel) return true } if commandSelector == #selector(NSResponder.moveDown(_:)) { doMovement(.down) return true } if commandSelector == #selector(NSResponder.moveUp(_:)) { doMovement(.up) return true } if commandSelector == #selector(NSResponder.insertTab(_:)) { doMovement(.tab) return true } if commandSelector == #selector(NSResponder.insertBacktab(_:)) { doMove
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’22
Reply to Implementing a cursor on both a cell and a row while using NSTableView
Yes you can. I implemented something similar in an app. nbIndividus is the number of rows, nbVariables is number of columns. selectedRowInDataTable and selectedColInDataTable are global var in the class. I just copy the code, you would have to adapt of course. func doMovement(_ mouvement: NSTextMovement) { if selectedRowInDataTable < 0 || selectedColInDataTable < 0 { return } var newRow = selectedRowInDataTable var newCol = selectedColInDataTable switch mouvement { // return as down case .return : newRow += 1 if newRow >= nbIndividus { newRow = nbIndividus - 1 ; playLightBeep() } case .tab : newCol += 1 if newCol >= nbVariables { newCol = 0 ; playLightBeep() } case .backtab : newCol -= 1 if newCol < 0 { newCol = nbVariables - 1 ; playLightBeep() } case .down: newRow += 1 if newRow >= nbIndividus { newRow = 0 ; playLightBeep() } case .up: newRow -= 1 if newRow < 0 { newRow = nbIndividus - 1 ; playLightBeep() } default: break } dataTableView?.selectRowIndexes([], byExtendingSelecti
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’22
Reply to App Crashes in iOS 16. Unable to find crash reason
But after symbolicating I found these runtime.mach_msg_trap + 36, runtime.mach_msg + 80. Wha!?! The second column of thread 4’s backtrace shows that these symbols are coming from Freshsales, you’re app’s Mach-O image. It sounds like you’re using third-party tooling that’s making system calls directly. This is not supported on any Apple platform. If you want to make a system call, you must call the relevant routine exported by libSystem. I recommend that you escalate this with the tool’s vendor. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Sep ’22
How to sort NSTableView Date Column?
I have a date column in a macOS NSTableView column in YYYY-MM-DD format and when using the code below the sort does not sort way I want. When sorting ascending. It has the year correct but the month is in reverse order. See image below. How can I fix this? func sortInvoices(invoiceColumn: String, ascending: Bool) { enum SortOrder { static let Date = invoiceDateCreated static let Number = invoicenumber static let Customer = invoicecustomer static let Status = invoicestatus } switch invoiceColumn { case SortOrder.Date: invoices.sort { (p1, p2) -> Bool in guard let id1 = p1.invoiceDateBilled, let id2 = p2.invoiceDateBilled else { return true } if ascending { return id1 < id2 } else { return id2 < id1 } }
1
0
902
Sep ’22
Reply to How to sort NSTableView Date Column?
I changed the code to convert date to an integer and that worked for me as well changed to a different column. let dateFormatter = DateFormatter() dateFormatter.dateFormat = YYYYMMdd dateFormatter.locale = Locale(identifier: en_US_POSIX) invoices.sort { (p1, p2) -> Bool in let p1Date: Int? = Int(dateFormatter.string(from: p1.invoiceDateCreated!)) let p2Date: Int? = Int(dateFormatter.string(from: p2.invoiceDateCreated!)) guard let id1 = p1Date, let id2 = p2Date else { return true } if ascending { return id1 < id2 } else { return id2 < id1 } }
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’22
Guideline 2.1 - Performance - App Completeness We continue to see the same bug in your app. Specifically, an activity indicator kept spinning indefinitely when we attempted to login with the demo credentials provided. Please review the details below
My app is developed with flutter and firebase Auth My app has been uploaded 10 times before and the reviewers reject it because of this reason Guideline 2.1 - Performance - App Completeness We continue to see the same bug in your app. Specifically, an activity indicator kept spinning indefinitely when we attempted to login with the demo credentials provided. Please review the details below and complete the next steps. Review device details: Device type: iPhone OS version ios 16.0I think this is because it does not send a request to Firebase to request a verification code (OTP) T his is my code body: controller.isSendingCode ? Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: const [ CustomLoader(), SizedBox(height: 50), Center( child: Text( 'يتم الان إرسال رمز التحقق', style: TextStyle(fontSize: 25), ), ), ], ) code-block
1
0
690
Sep ’22
How To Make Equal Heights CollectionView Groups Using UICollectionViewCompositionalLayout
I have a UICollectionViewLayout grid with three columns. Each item in the column has a cell full of text. I would like all the columns to be the same height as the tallest item in the group. Using UICollectionViewCompositionalLayout I'm having a hard time getting the desired results. I created a EqualHeightsUICollectionViewCompositionalLayout subcalss to check the cell attributes in layoutAttributesForElements and stores the largest cell height in a row. This seems to work good intially, but when the collectionview invalidates, the cell sizes are not always correct. How can I fix this? Here is an example project, and here is a stack overflow post class EqualHeightsUICollectionViewCompositionalLayout: UICollectionViewCompositionalLayout{ var largestDict: [Int: CGFloat] = [:] let columns = 3 override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { let attributes = super.layoutAttributesForElements(in: rect) if let attributes = att
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
2.6k
Sep ’22
Error building instrumentspackage with latest Xcode 13.3
I have a schema building an instruments package. After updating to Xcode 13.3 it fails with: BuildInstrumentsPackage ....instrdst... /Applications/Xcode.app/Contents/Developer/usr/bin/instrumentbuilder ... Assertion failed: (_columnToInterpolationExpressionMapping[column] == nil), function -[XRPackageModelingRuleSystem setColumnInterpolation:expression:definesLayoutScope:], file XRPackageModelingRuleSystem.m, line 422. Command BuildInstrumentsPackage failed with a nonzero exit code I don't have a clue what's going wrong. Any hint?
6
0
2.1k
Sep ’22
Reply to How to display [Link]?
What do you mean by displaying the links? (1) Is it showing them repeatedly in a row/column? (2) Or do you want the links to be interpolated in some standard text? I would recommend using an array of a custom type that can then each be converted into a Link view, instead of storing the actual view. Something like this: struct DisplayedLink { let title: String let url: URL } let links: [DisplayedLink] = [ ... ] Option 1: // any suitable layout container VStack { ForEach(links, id: .self) { link in Link(link.title, destination: link.url) } } Option 2: var linksText: AttributedString { var str = AttributedString(text comprised of the links' titles) for link in links { if let range = str.range(of: link.title) { str[range].link = link.url } } return str } // the linked text is coloured and tappable Text(linksText)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to TVOS 15 to Xcode 13 doesn’t pair
I have the same problem, but it started after I successfully paired an ATV (Model A2169, 4K, 2nd Gen) running 15.6 to MBP - I then upgraded the ATV to tvos 16, after which it refuses to pair (just like other posters report), but in my case, resetting the wifi on MBP does not fix the problem. Basically, I cannot pair ATV to MBP after tvos 16 update to the ATV. Any advice from Apple would be appreciated. (I tried a full reset on the ATV as well; MBP running XCode ) UPDATE: After running through the loop of reconnecting a dozen times and doing another full reset on the ATV, I tried double-clicking the ATV name in the left column, and for some unknown reason it then kicked-off the connection process and it seems to have succeeded. The remaining issue is that TVML app that runs fine in the Apple TV 4k (at 1080, 2nd Gen) simulator is crashing on the ATV running tvos 16.
Sep ’22
Reply to Network Extension capability missing in dev portal
It's between Developer and Enterprise (but closer to Developer) Interesting. if it is better (and easier) to buy the ADP. It’s definitely easier to join the developer programme; that puts you on a very well-trodden path. Whether it’s better is not something I can answer; it’s not my money after all (-: Regardless, if an education account gets different capabilities it’s clear that we need a new column in that Supported capabilities (iOS) doc. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Sep ’22