Search results for

column

2,048 results found

Post

Replies

Boosts

Views

Activity

Reply to is it possible to use gestures with SwiftUI Table?
Hey @MobileTen, Thanks for responding! I appreciate the help. I should have made myself clearer though in that I want to be able to double click anywhere in the row and not just the text in a certain column. Or at least anywhere in the cell containing the text. Any other ideas on how I could possible make this work? Thanks again!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to Dynamic e random matrix
Claude31, Exactly. In the application, the user will answer some questions and according to their answer, a certain column X row will be filled with information. Like this: The cell (col X row) to be filled depends on the user's response The content will be text, a string. You can restart the app at any time, when previously used cells must be cleaned.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’24
Reply to Populating a Table translate to Swift ?
OK, this has gone completely in the wrong direction. Let's go back to your original issue. Well, issues, plural.The first thing: If you look at this documentation page:https://developer.apple.com/documentation/appkit/nstableview/1535482-makeviewwithidentifieryou'll see that the method gets a new or existing cell. There is absolutely no need to create your own cell manually if makeViewWithIdentifier fails. The older documentation that you linked to is essentially wrong on this point.Instead, if makeViewWithIdentifier returns nil, your code should assert, because this is a programmer error — you haven't configured something correctly in IB.The second thing is that the table cell is almost always a subclass of NSTableCellView. NSTextField is not. When you create a table view in IB, it preconfigures the column to contain a NSTableCellView with a NSTextField as a subview, connected to the parent NSTableCellView's textField outlet. You need to return a NSTableCellView, not a NSTextField.The third thing is
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’19
Reply to How to take screenshots? Video?
You can use the Devices panel in Xcode to create screenshots. Just select the device in the left column and click the button to take a snapshot just as you would with an iOS device.If you are running El Capitan, you can use Quicktime Player to take screen recordings as you would with an iOS device.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to iCloud for Mac is stuck on "waiting to upload"
Certainly this iCloud upload being stuck bug is frustrating. My method to resolve it is as follows: Launch Activity Monitor, click on the CPU tab at the top, look for the bird process in the Process Name column, select it, and stop it (kill it) by clicking on the Stop icon on the tool bar (the one with an X inside a circle). You will noticed that the process id number listed in the PID column changes after a couple of seconds, which indicates that the bird process has been restarted by the system (The bird process is responsible of the iCloud background file synchronization). Most of the times this solution will work. If stopping the bird process did not solve the iCloud synching, then perform a full shutdown/restart of your computer. This is the ultimate fix that has always worked for me thus far.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’23
Reply to Custom struct Codable for SwiftData
Ditto here. All the other advice on the subject of struct-typed model attributes asserts the struct must be Codable and it stored in a single column. The evidence shows the struct's properties are stored as individual columns, spreading the structure out and using some truly unexpected Encoder/Decoder that's not JSON. For instance, I defined struct ComplexNumber: Codable { var real: Double var imaginary: Double } and @Model final class Item { var timestamp: Date var number1: ComplexNumber var number2: ComplexNumber and got this in SQLite: This works fine when fetching the records, but in my app it fails to decode when some of the struct's properties are Optional. I can write decoder() to deal with the optionals, but apparently SwiftData's Decoder can't cope. I suppose there's some similar limitation for Dictionary properties.
Sep ’24
Reply to Can i tracking in app purchases?
Unfortunately Search Ads does not track in-app purchase conversions.The solution that I think would work would be to follow the instructions here: https://searchads.apple.com/advanced/help/measure-results/#attribution-api to firstly track if a user has installed the app through Search Ads. Then what you can do is store this in a table in Firebase for example. This would be your first column and would say whether the app download originated from Search Ads. Then, in a second column (In-App Purchase Made), when a user makes an in-app purchase, you could update this to show True and then using that information you'd be able to see in a table which of your users originated from Search Ads and then which of those went on to buy an in-app purchase.Obviously this isn't an official method and does take a bit of work but if it is a requirement, I see this as the only solution. Shame Apple doesn't support it officially.
Topic: App & System Services SubTopic: General Tags:
Aug ’18
Reply to Network Extension capability missing in dev portal
You definitely need the Networks Extensions capability to create… well… network extensions. If that’s not showing up under the Capabilities tab in Developer > Account > Certificates, Identifiers & Profiles > Identifiers > [your app ID] then you won’t be able to make progress on this task. Is the lack of this capability on the portal due to the education licence? Possibly. My go-to reference for this stuff is Developer Account Help > Reference > Supported capabilities (iOS). It doesn’t have a column for education accounts, so it’s not clear whether they fall under ADP (paid developers) or Apple Development (unpaid developer using a Personal Team). If you look through the capabilities that you do have access to, which column does it best match? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Sep ’22
Reply to NSBrowser - edit cell contents
Hi,I can't really provide any code, but what I have is a NSBrowser hooked into CoreData, with the ability to add and remove entities in the hiearchy.I've tried hooking a double click event up to an IBAction (though a single click is what I'm ultimately after), from here I can get a reference to the browser. Then I was attempting to get the selected item in the appropriate column, but on the first column I was getting an empty array back when printing the indexPath. I must be doing something wrong there. I removed the non working code so I can't post here.I have read the docs, but I'm obviously missing something.I have seen that dcandi code before but it doesn't handle editing of file names, by clicking.I'll have another go at the indexpath func, and see if I implemented my logic wrong. If I still don't have any look I'll look to post some of the code here.thanksMark
Topic: UI Frameworks SubTopic: AppKit Tags:
Jan ’20
Reply to Creating an iPadOS Project
Use the iOS project templates to make an iPadOS app.To limit your app to the iPad, select the project file on the left side of the project window to open the project editor. Select the app target from the project editor. In the Deployment Info section, deselect the iPhone checkbox in the Device column.
Oct ’19
Reply to Swift Packages + Dependencies + SwiftUI = Fail to Preview
Update: Relevant snip of the view: public struct ListOfPosts: View { @State private var posts = [Post]() public var body: some View { return ScrollView { LazyVGrid(columns: columns, spacing: 20) { ForEach(posts, id: .self) { item in NormalView(title: item.title, excert: item.excert, thumbnail: item.thumbnail) } } .padding(.horizontal) } } } struct Posts_Previews: PreviewProvider { static var previews: some View { ListOfPosts(API().getPosts()) } } After updating the Preview, this is the current error message: LoadingError: failed to load library at path (...)/Products/Debug-iphonesimulator/PackageFrameworks/Posts.framework/Posts tReason: image not found) Diagnostic message - https://developer.apple.com/forums/content/attachment/f5608467-8566-4d10-9779-b79f484b5fff
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’20
Reply to Error when loading (some) Audio Units on macOS 12
Looks like you’re making great progress here. but I have no prove that this version is sandboxed There are two ways to do that: Run the app, run Activity Monitor, find the app in the process list, and check the Sandbox column. You might need to control click on the list headers to enable that column. Check for the entitlement with codesign. I don’t have Logic installed, but here’s an example with GarageBand: % codesign -d --entitlements - /Applications/GarageBand.app … [Dict] … [Key] com.apple.security.app-sandbox [Value] [Bool] true … Having said that, working with GarageBand seems like the acid test to me. If an audio unit fails there, it’s worth reporting that as a bug against the audio unit. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
Sep ’23
Reply to ToolbarItem has a bug in XCode 15 beta 8.
Please file a bug report at https://feedbackassistant.apple.com with this and post the feedback number here! In the meantime, try using a NavigationStack in the detail column. For example: } detail: { NavigationStack { ZStack { Text(Select : (selection ?? -1)) } .toolbar { ToolbarItem(placement: .topBarTrailing){ Button { } label: { Text(ToolbarItem) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’23