Search results for

column

2,049 results found

Post

Replies

Boosts

Views

Activity

Reply to How to read and write to a table?
Again, it's still unclear what kind of assistance you're looking for. People here are happy to answer specific questions, but if you're having trouble getting started, it's not really practical for anyone to jump in and write code for you.Based on the shape of the screen in your image, it looks like this is an iPhone app, so you'd be using UITableView, not NSTableView (the Mac equivalent). With UITableView, there are no columns as such, only rows. To get an arrangement like your screen with the steppers, each row (cell) would have a cell view that uses autolayout to position the subelements — text label to the left, stepper and text file to the right. It'll look like columns, even though there aren't really any columns.Have you tried starting from an iOS master/detail template, which you can choose when creating a new project in Xcode? This should have a similar general structure to the kind of app you seem to be wanting, and you can customize your rows using that template as a starting poin
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’16
Reply to Search Ads - Track downloads?
That's what the Conversions column is for.CPA is cost-per-acquisition, so will give you an idea of how much you're paying for a conversion.In general you will see so many impressions (ads shown to a user), only a percentage of these will result in a tap, and only a percentage of these will finally result in a conversion. It's like a funnel.
Topic: App & System Services SubTopic: General Tags:
Oct ’16
Reply to Core Data code generation causes build failure
If you go to your data model and look at Configurations -> Default you will probably see that in the Class column everything is prefixed with a .. To fix this, go to each of your entities and on the right delete everything inside the module setting so that it goes to Global namespace. This should remove the . and will hopefully mean that your files are now found. If you clean and build again it should all work.
Oct ’16
Reply to Xcode 8 recompiles every file every build
Go to Product -> Scheme -> Edit Scheme. Select Build in left side column and uncheck Find implicit dependenciesBut this flag should remain checked when you are building the project for first time.This worked for me. It no longer recompiles the entire project. The only side effect I have noticed so far is that I have to turn it back on for the first build if i clean the project and/or purge DerivedData.I haven't been able to replicate this issue in a new dummy project, that I would be able to share. I have noticed it only in larger project for customers, all of which have started as Xcode 7.x projects with a bunch of Cocoapods dependencies.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’16
NSTableView not setting the content right
I'm using the NSTableView that is available in interface builder. I'm using Xcode 8. Then I set the datasource to one of my view controller. I implemented the following: func numberOfRows(in tableView: NSTableView) -> Int { return 1 } public func tableView(_ tableView: NSTableView, objectValueFor tableColumn: NSTableColumn?, row: Int) -> Any? { return A }However when I run this, I just see table view with one row, two column, and both displaying the following text:Table View CellIt used to be much simpler, now the documentation says something, header has something else.
Topic: UI Frameworks SubTopic: AppKit Tags:
3
0
1.7k
Oct ’16
Reply to NSTableView not setting the content right
Actually, I was able to get the content displayed. Following guide was helpful although different then what is current working:https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/TableView/PopulatingView-TablesProgrammatically/PopulatingView-TablesProgrammatically.htmlI then had to match the identifier of the cell with the column.
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’16
Reply to NSTableView not setting the content right
Well, you haven't really implemented this completely. Assuming you have placed a table with view-based cells rather than NSCell-based cells…Each column of each row has a cell view, which is a NSTableCellView (or a subclass of NSTableCellView, if you've chosen to go that route). A cell view has two standard subviews, imageView and textField. The unconfigured default behavior of textField is to show that static text Table View Cell.What you need to do, to finish your implementation, is to connect textField to the value for each row, and there are a couple of possible ways of doing that:1. You can bind the value binding of the text field to a value provided via the cell view's objectValue property. Since your data source is providing the string A as the object value for every row, your binding would just use the model key objectValue. (Typically, the objectValue is a custom class instance with custom properties, you usually use a model key of the form objectValue.whateverProperty, but a simple String va
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’16
Resource Caching and Web Inspector Network Tab
While testing resource caching over Safari it's been observed that some of the information related to resource caching in the Network Tab of Web Inspector is wrong/misleading, or Safari may be having some random behaviour regarding resource caching.All our resources are using a Cache-Control response header with value max-age=0, must-revalidate, so we're expecting that Safari will always revalidate with the server. Our resources are Javascript, CSS, and HTML static files.For these requests, where a 304 (Not Modified) response status is expected, Web Inspector is *sometimes* displaying a 200 (OK) response status, along with that a Transferred value of 0. Other responses properly display the 304 status along with 204 B size (the expected result). All requests display the Cached file as Yes.- Do you have any idea why some resources seem to have a 200 status + 0 bytes transferred, whilst others have the expected 304 status + 204 B transferred?- Could the 200 status + 0 transferred bytes mean that Safari isn't act
1
0
2.4k
Oct ’16