Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

Reply to CollectionView in TableView
But actually when i try to connect my ViewCollection with my ViewController, i recieve Error Outlets cannot be connected to repeating content. When i try to create it manualy, inside my function tableView(), the column which contains the ViewCollection isn't recognise.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’18
Reply to How to declare a TableColumn with nullable field?
Just ran into this issue too when working through a simple struct with Strings. A table of mostly strings with some columns sensibly optional Strings. The compiler message displayed in Xcode 13.3 is: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions So not helpful. Removing the path does seem to work, but the docs would suggest that the column will no longer participate in sorting state of the table. I too can think of use cases where I have optional data but want the rest of the non-optional Strings to be sorted (either at the bottom or the top).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22
Reply to Using Apple sign in with Developer ID for a Mac Catalyst app distribution
So I guess what the ADP column really means is applications sold on the App Store, right ? Right. And the Apple Development signing your use when developing such apps. If you distribute your product independently, reference the Developer ID column. It is a little frustrating not to be able to use this feature directly I can’t really comment on the policy here — Sign in with Apple is definitely outside of my area of expertise — so all I can do I clarify what that policy is. ps The term ADP name makes more sense in the corresponding iOS reference. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Mar ’22
Reply to Make method less repetative
Oh, ok. I had misunderstood what you are trying to accomplish.FWIW, besides the fact there is not what you want, maybe i should have written in this way...private func generateLoserLocationFunction(numberOfPlayers: Int) -> (column: Int, row: Int) -> (column: Int, row: Int) { switch numberOfPlayers { case 8,16,32: return { row, column in let newCol = -2 * column switch (column,numberOfPlayers) { case (0,_): return (newCol, row / 2) case (1,8), (2,16), (3,32): return (newCol, row ^ 1) case (1,16): return (newCol, 3 - row) case (1,32): return (newCol, (row + 4) % 8) case (2,32): return (newCol, row) default: return (newCol, 0) } } default:abort() } }But going back to you problem, so, if i understand well, it's a case of premature optimization, like in our example of colors:func generateGetColorFunction(numberOfPlayers: Int) -> () -> UIColor { if numberOfPlayers == 8 { return { return UIColor.redColor() } } else if numberOfPlayers == 16 { return { return UI
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to errSecInternalComponent building locally with Xcode
In the My Certificates tab, that certificate and its associated private key both show login in the Keychain column. I have several other development identities in my keychain and others are working, it's just this one that isn't. The others also have both their certificates and private keys in the login keychain.
Topic: Code Signing SubTopic: General Tags:
Oct ’23
Reply to Screen Space Coordinates to CVPixelBuffer Coordinates
Okay after finding this question and trying what it said I made some progress. However, I am attempting to use arView.session.currentFrame.smoothedSceneDepth and not arView.session.currentFrame.estimatedDepthData. Here is the updated extension: extension CVPixelBuffer { func value(from point: CGPoint) -> Float? { let width = CVPixelBufferGetWidth(self) let height = CVPixelBufferGetHeight(self) let normalizedYPosition = ((point.y / UIScreen.main.bounds.height) * 1.3).clamped(0, 1.0) let colPosition = Int(normalizedYPosition * CGFloat(height)) let rowPosition = Int(( 1 - (point.x / UIScreen.main.bounds.width)) * CGFloat(width) * 0.8) return value(column: colPosition, row: rowPosition) } func value(column: Int, row: Int) -> Float? { guard CVPixelBufferGetPixelFormatType(self) == kCVPixelFormatType_DepthFloat32 else { return nil } CVPixelBufferLockBaseAddress(self, .readOnly) if let baseAddress = CVPixelBufferGetBaseAddress(self) { let width = CVPixelBufferGetWidth(self) let index = column
Topic: Spatial Computing SubTopic: ARKit Tags:
Apr ’22
Reply to SwiftUI dynamic number of columns with LazyVGrid
Yes, it helped another ancient coder. I'm working on Swift access to MySQL databases to maintain homemade bookkeeping programs. I wanted to display the results of a query, which can of course have a varying number of columns with varying keys. I tried for a couple of days to figure out the Table/TableColumn SwiftUI View, and then found your post. Something like this is working great: ForEach(aDBModel.dbRowsAsDicts, id: .id) { thisDict in HStack { LazyVGrid(columns: obsColumns, content: { ForEach(aDBModel.identifiableFieldNames, id:.id) { aColName in Text(thisDict.theDict[aColName.theString] ?? ) } }) } } Thanks! XCode sure beats keypunching, waiting for your deck of cards to run, and then looking up a bunch of numeric error codes!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22
Reply to Help with a script to automate data entry
Someone on another forum tried to help by writing a macro for Excel but I failed to tell him I was using Numbers so, of course, it doesn't work but they did give me a clue in their attempt. I need to write a script that: (I can change the names later) -calls up the document XXX -calls up Sheet1 -copies the value of Sheet1, cell B67 -calls up sheet Sheet2 -pastes the result in cell A3 of Sheet2 -inserts a new column (or row) A on Sheet2 (preserving previous result) -recalculates Sheet1 -copies the result from Sheet1, cell B67 to column A of Sheet2 in cell A3 and do that 2000 times Can any good apple script writers out there help me achieve this? Thanks in advance
Mar ’24
In Xcode 12, In Info.plist file column expanding or resizing to zoom not working
Xcode 12 macOS Catalina 10.15.4 MacBook Air (2017) For more information please see in stack over flow question link: https://stackoverflow.com/questions/64112571
Replies
4
Boosts
0
Views
2.1k
Activity
Sep ’20
Reply to CollectionView in TableView
But actually when i try to connect my ViewCollection with my ViewController, i recieve Error Outlets cannot be connected to repeating content. When i try to create it manualy, inside my function tableView(), the column which contains the ViewCollection isn't recognise.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’18
Reply to SwiftUI - Nested links within NavigationStack inside a NavigationSplitView not working
The problem is there even in Apple's sample Bringing robust navigation structure to your SwiftUI app | Apple Developer Documentation: on Mac Related Recipes cannot be selected after choosing Experience > Two Columns > Dessert > Apple Pie.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to How to declare a TableColumn with nullable field?
Just ran into this issue too when working through a simple struct with Strings. A table of mostly strings with some columns sensibly optional Strings. The compiler message displayed in Xcode 13.3 is: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions So not helpful. Removing the path does seem to work, but the docs would suggest that the column will no longer participate in sorting state of the table. I too can think of use cases where I have optional data but want the rest of the non-optional Strings to be sorted (either at the bottom or the top).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Using Apple sign in with Developer ID for a Mac Catalyst app distribution
So I guess what the ADP column really means is applications sold on the App Store, right ? Right. And the Apple Development signing your use when developing such apps. If you distribute your product independently, reference the Developer ID column. It is a little frustrating not to be able to use this feature directly I can’t really comment on the policy here — Sign in with Apple is definitely outside of my area of expertise — so all I can do I clarify what that policy is. ps The term ADP name makes more sense in the corresponding iOS reference. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Make method less repetative
Oh, ok. I had misunderstood what you are trying to accomplish.FWIW, besides the fact there is not what you want, maybe i should have written in this way...private func generateLoserLocationFunction(numberOfPlayers: Int) -> (column: Int, row: Int) -> (column: Int, row: Int) { switch numberOfPlayers { case 8,16,32: return { row, column in let newCol = -2 * column switch (column,numberOfPlayers) { case (0,_): return (newCol, row / 2) case (1,8), (2,16), (3,32): return (newCol, row ^ 1) case (1,16): return (newCol, 3 - row) case (1,32): return (newCol, (row + 4) % 8) case (2,32): return (newCol, row) default: return (newCol, 0) } } default:abort() } }But going back to you problem, so, if i understand well, it's a case of premature optimization, like in our example of colors:func generateGetColorFunction(numberOfPlayers: Int) -> () -> UIColor { if numberOfPlayers == 8 { return { return UIColor.redColor() } } else if numberOfPlayers == 16 { return { return UI
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to Apple Maps Navigation with CarPlay
Its working fine for me also. BUT...I thought the Map feature would also show up in screen on my steering wheel column. I have a 2016 Mercedes GLE350 and with CarPlay the screen behind sterring wheel does NOT interface with the turn by turn with CarPlay.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’16
Reply to Core Data Error with NSDate
Hello OOPer:Your suggestion implemented got rid of the error. However, the database record had the following in date column:(timestamp) 599448923.068390How can I get the date format dd/mm/yyyyI am using the system date.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’19
Reply to Sticker Pack Issue: Missing App Extension
I just fixed this:Make sure you have added your extension in Embed App Extensions.Select App extensions from Left column under Products.Build Phases > Embed App Extensions > Destination=Plugins > Add Extension file
Replies
Boosts
Views
Activity
May ’20
Reply to Read a .dat file and plot a graph
Thanks a lot for your help. Could you recommend me some link where I can get more information about it ? I know exactly how many roll and columns my data file is and they are all composed by numbers from a double variable. Thanks again, Arthur.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to NavigationSplitView in two-column mode does not work properly on iOS in portrait mode
Could you please provide a navigation sequence showing the issue? For example the following works as expected under iOS in portrait mode: Two Columns > Dessert > Apple Pie > Related Recipes: Pie Crust shows the details for Pie Crust
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to errSecInternalComponent building locally with Xcode
In the My Certificates tab, that certificate and its associated private key both show login in the Keychain column. I have several other development identities in my keychain and others are working, it's just this one that isn't. The others also have both their certificates and private keys in the login keychain.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Screen Space Coordinates to CVPixelBuffer Coordinates
Okay after finding this question and trying what it said I made some progress. However, I am attempting to use arView.session.currentFrame.smoothedSceneDepth and not arView.session.currentFrame.estimatedDepthData. Here is the updated extension: extension CVPixelBuffer { func value(from point: CGPoint) -> Float? { let width = CVPixelBufferGetWidth(self) let height = CVPixelBufferGetHeight(self) let normalizedYPosition = ((point.y / UIScreen.main.bounds.height) * 1.3).clamped(0, 1.0) let colPosition = Int(normalizedYPosition * CGFloat(height)) let rowPosition = Int(( 1 - (point.x / UIScreen.main.bounds.width)) * CGFloat(width) * 0.8) return value(column: colPosition, row: rowPosition) } func value(column: Int, row: Int) -> Float? { guard CVPixelBufferGetPixelFormatType(self) == kCVPixelFormatType_DepthFloat32 else { return nil } CVPixelBufferLockBaseAddress(self, .readOnly) if let baseAddress = CVPixelBufferGetBaseAddress(self) { let width = CVPixelBufferGetWidth(self) let index = column
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to SwiftUI dynamic number of columns with LazyVGrid
Yes, it helped another ancient coder. I'm working on Swift access to MySQL databases to maintain homemade bookkeeping programs. I wanted to display the results of a query, which can of course have a varying number of columns with varying keys. I tried for a couple of days to figure out the Table/TableColumn SwiftUI View, and then found your post. Something like this is working great: ForEach(aDBModel.dbRowsAsDicts, id: .id) { thisDict in HStack { LazyVGrid(columns: obsColumns, content: { ForEach(aDBModel.identifiableFieldNames, id:.id) { aColName in Text(thisDict.theDict[aColName.theString] ?? ) } }) } } Thanks! XCode sure beats keypunching, waiting for your deck of cards to run, and then looking up a bunch of numeric error codes!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Help with a script to automate data entry
Someone on another forum tried to help by writing a macro for Excel but I failed to tell him I was using Numbers so, of course, it doesn't work but they did give me a clue in their attempt. I need to write a script that: (I can change the names later) -calls up the document XXX -calls up Sheet1 -copies the value of Sheet1, cell B67 -calls up sheet Sheet2 -pastes the result in cell A3 of Sheet2 -inserts a new column (or row) A on Sheet2 (preserving previous result) -recalculates Sheet1 -copies the result from Sheet1, cell B67 to column A of Sheet2 in cell A3 and do that 2000 times Can any good apple script writers out there help me achieve this? Thanks in advance
Replies
Boosts
Views
Activity
Mar ’24