Search results for

column

2,048 results found

Post

Replies

Boosts

Views

Activity

Reply to NSTableView: dynamic columns
Happy New YearSo I built this special NSTableView, with columns using a XIB File. I can fill the values of the column, I also can enter values in the cells in order to Write in my Database.But when I have the table in a non editing state and I click on a row, I have the following error:Assertion failure in -[NSTableRowView viewAtColumn:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.20.106/TableView.subproj/NSTableRowView.m:22432018-01-01 06:47:59.404600+0100 testinput[35250:3816628] [General] An uncaught exception was raised2018-01-01 06:47:59.404620+0100 testinput[35250:3816628] [General] Invalid parameter not satisfying: column >= 0 && column < _columnCountI tried everything (in the limit of my knowledge)I even override the func func view(atColumn column: Int, row: Int, makeIfNecessary: Bool), but it's never called.Any Idea?
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’18
Promotional Offer ID column is empty in Subscriber report for redeemed offer code
When redeeming a custom offer code, I'm not able to see the actual offer code ID in the Subscriber report - only the subscription offer name is present. I'm going off of the documentation for the Promotional Offer ID column: A code that you create for customers to enter and redeem the subscription offer. https://developer.apple.com/help/app-store-connect/reference/subscriber-report Is the documentation wrong? How are we supposed to measure the performance of our offer codes beyond the initial redemption? For example, with the offer name I can see how my Holiday Promos offer is doing but can't see the actual performance of BLACKFRIDAY30 vs MOTHERSDAY30.
1
0
553
Aug ’24
Reply to Set the ringtone for a contact programmatically
You can use ContactsContract.Contacts which has a column CUSTOM_RINGTONE (which is a read/write column!) for this purpose. Uri contactUri; ContentValues values = new ContentValues(); values.put(ContactsContract.Contacts.CUSTOM_RINGTONE, newRingtoneUri.toString()); context.getContentResolver().update(contactUri, values, where, args);
Topic: App & System Services SubTopic: General Tags:
May ’22
Reply to ARKit camera transform orientation vector doesn't match physical device heading (despite `.gravityAndHeading`)
Hello @himanshujnaidu, I can't tell for sure but it sounds like the matrix you show above is different than how you are interpreting it. Camera Transform = simd_float4x4( [ [0.98446155, -0.030119859, 0.172998, 0.0], // column 0 [0.023979114, 0.9990097, 0.037477385, 0.0], // column 1 [-0.17395553, -0.032746706, 0.98420894, 0.0], // column 2 [0.024039675, -0.037087332, -0.22780673, 0.99999994] // column 3 ]) First up, keep in mind that float4x4's init method is column major. So each 'row' in that code is a column in the matrix. So in this case the position of the camera relative to the origin is 0.024039675, -0.037087332, -0.22780673 Second, the upper-left part of the float4x4 matrix is a float3x3 and represents the orientation. The eulerAngles property on the frame.camera re-interprets this 3x3 matrix as the familiar Euler angles. You can find the orientation of the camera relative to the frame via let rotation = frame.camera.eulerAngles rotation.y will be
Topic: Spatial Computing SubTopic: ARKit Tags:
Jun ’25
iOS 14 UISplitViewController (sidebar) with triple column sidebar toggle icon behavior
I'm implementing the iOS 14 (iPadOS 14) sidebar (UISplitViewController with TripleColumn) and having strange sidebar toggle icon behavior. In iOS 13 I'm using the tab bar with tabs with split views and tab with only table view so I need the Triple Column instead of the Double Column to work. In iOS 13, there is one tab with only a table view, so I set the supplementary view to nil, and hide the view by calling hide method implemented in UISplitViewController in iOS 14. (See below for code). The sidebar toggle icon on the upper left is automatically displayed. After clicking the toggle icon, the sidebar hides correctly but an back button was created on my secondary view(a UITableViewController embedded in a UINavigationController). Selecting the back button has no response at all. However, user can still swipe from the left edge of the screen to make sidebar reappear but the back button is confusing. My expected behavior is, after the toggle icon selected in sidebar, display the sidebar toggl
1
0
2.2k
Sep ’20
HStack required to get columns in a Grid
I've looked at lots of Grid examples. I've seen it documented that views within a GridRow are treated as if they were in an HStack. That's not happening for me. I have to explicitly put them into an HStack or they are treated as new rows. Here's my code: @State private var gridRows : Int = 4 @State private var gridCols : Int = 2 @State private var myItems : [Int] = Array(0...8) var body: some View { Group { if myItems.count > 0 { ScrollView([.vertical]) { Grid(alignment: .leading) { ForEach(0..<<--- { ForEach(0..
Topic: UI Frameworks SubTopic: SwiftUI
2
0
317
Nov ’24
Reply to macOS Monterey Xcode Update Questions (New Warnings)
The proposed solution of unchecking the column selection checkbox in IB attributes for the tableview does not solve it here ( macOS 12.4, Xcode 13.4.1 ). Maybe I'm too trusting but Xcode knows the column selection attribute is for a view-based tableview, so it could disable the Column checkbox to prevent the selection if it is truly not supported. The warning ( and whatever the underlying cause is ) has no visible impact on my app. Other workarounds and thoughts welcome ( TIA )!
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’22
Label text in UISplitViewController primary column not respecting dark mode in iOS 26 beta 4
In iOS 26 beta 4 (build from July 2025), there is a visual issue when using a UISplitViewController. Specifically, the text color of labels in the primary column does not adapt correctly to Dark Mode. This includes navigation bar titles and labels inside UITableViewCells. Regardless of system appearance settings, the text remains black, making it unreadable when the system switches to Dark Mode. To reproduce this, create a new iOS project using UISplitViewController with the .doubleColumn style. In the primary column, embed a UIViewController that contains a navigation title using navigationItem.title, and a UITableView showing a list of items. Run the app on a device or simulator with iOS 26 beta 4. Then switch the system appearance to Dark Mode using Control Center and observe the interface. The expected result is that all labels in the primary column, including the navigation title and table view cell labels, should automatically update to a light text color in Dark Mode. This be
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
58
Jul ’25