Search results for

column

2,052 results found

Post

Replies

Boosts

Views

Activity

Reply to unused variable check -> turn back on
In the Build setting, I searched for unused. I saw the setting (3 columns in project, 4 in Targets)Resolve, myApp (in target only), myApp and iOS DefaultI wanted the alerts , so I set all to Yes except for the last column which is set to No and that I cannot change.That was my ScreenShot.the reading your answer, I realized that I was checking if it was working with Instance Var and it was not working but I just check inside a func and it work.I guess it must be the normal behaviour for instance var to not give the alert.Thank you Claude31, I think it's not the first time you help me !
Jan ’19
Reply to Schema to collect event signposts
The request has been made to add the emit events to the os_signpost instrument (44190979). In the mean time, you could switch to the Points of Interest category temporarily and use the Points of Interest instrument to see your intervals and points. That instrument does show both. A second alternative would be write a quick instrument that just shows the contents of the os-signpost schema but filters the event-type column to Event.
Jan ’19
Reply to Schema to collect event signposts
Perfect! Thanks for the pointer. I'm finally starting to grasp the documentation a bit and ended up using slice.Something like this seems to work:<list> <title>List: Writes</title> <table-ref>writes</table-ref> <slice> <column>event-type</column> <equals> <event-type>Event</event-type> </equals> </slice> <column>name</column> <column>message</column> </list>It seems like maybe there's a way to filter in create-table using the attribute element but it keeps telling me that event-type is not an attribute of the os-signpost schema (perhaps it's a column and not an attribute, not sure I fully grasp the terminology yet). I'll take a look at a custom modeler as shown in your final advanced example to better filter based on the message.I think it'd be useful to have some type of model generator (os-signpost-point-schema?) for these events where a p
Jan ’19
Reply to Why isn't there uniformity between the macOS and iOS versions of AVFoundation?
That's not the only case. You have several frameworks that are different in IOS or OSX Equivalent (UIKit and AppKit: UIButton and NSButton are very different).In some cases it is due to intrinsic differences between OS : single or multi window, different user interaction…In other cases it seems to be because it was developed independantly. But since a while, we can see that when frameworks are deeply modified, they get closer to each other.Could rea d this: no technical detail at all, just general considerations.h ttps://www.macobserver.com/columns-opinions/editorial/ios-macos-remain-separate/
Topic: Media Technologies SubTopic: Audio Tags:
Jan ’19
Why AVPlayer play HLS, maintain two connections?
When I play a url:(http://c4icyelb.prod.playlists.ihrhls.com/2245_icy?at=1&fb_broadcast=false&deviceid=amzn1.account.AEAEUTCMFLSHWEY3VKZFQNDFKPXQ&callLetters=KHKS-FM&streamid=2245&clienttype=amazon&iheartradioversion=1.0&osversion=1.0&devicename=Indigo&terminalid=304&init_id=8169&profileid=137824891),The backend colleague tell me that The APP client will maintain two connections. 2019/2/1 22:482019/2/1 22:50132132405700140106.1 KISS FMKBKS-FM4257amzn1.account.af6qodz4srwemkain2duhhc6uliaindigoAppleCoreMedia/1.0.0.16C101 (iPhone; U; CPU OS 12_1_2 like Mac OS X; en_us)amazon2019/2/1 22:482019/2/1 22:53323323405700140106.1 KISS FMKBKS-FM4257amzn1.account.af6qodz4srwemkain2duhhc6uliaindigoAppleCoreMedia/1.0.0.16C101 (iPhone; U; CPU OS 12_1_2 like Mac OS X; en_us)amazonFirst column is when the connection to the stream starts, and the second column is when it ends.So you can see the device is connecting to the same stream less than 1 second a part. First
0
0
600
Feb ’19
When play HLS stream, maintain two connections
When I play a url:(http://c4icyelb.prod.playlists.ihrhls.com/2245_icy?at=1&fb_broadcast=false&deviceid=amzn1.account.AEAEUTCMFLSHWEY3VKZFQNDFKPXQ&callLetters=KHKS-FM&streamid=2245&clienttype=amazon&iheartradioversion=1.0&osversion=1.0&devicename=Indigo&terminalid=304&init_id=8169&profileid=137824891),The backend colleague tell me that The APP client will maintain two connections. 2019/2/1 22:482019/2/1 22:50132132405700140106.1 KISS FMKBKS-FM4257amzn1.account.af6qodz4srwemkain2duhhc6uliaindigoAppleCoreMedia/1.0.0.16C101 (iPhone; U; CPU OS 12_1_2 like Mac OS X; en_us)amazon2019/2/1 22:482019/2/1 22:53323323405700140106.1 KISS FMKBKS-FM4257amzn1.account.af6qodz4srwemkain2duhhc6uliaindigoAppleCoreMedia/1.0.0.16C101 (iPhone; U; CPU OS 12_1_2 like Mac OS X; en_us)amazonFirst column is when the connection to the stream starts, and the second column is when it ends.So you can see the device is connecting to the same stream less than 1 second a part. First
1
0
767
Feb ’19
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
Correct JSON format for a Tableview
Hi,I have been given an api which outputs the following{statusCode: 200, headers: {Access-Control-Allow-Origin: *}, body: [{ID: 29, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Not Listed, ColumnE: null, ColumnF: null, lat: null, lon: null}, {ID: 22, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Canberra, ColumnE: ACT, ColumnF: null, lat: null, lon: null}, {ID: 24, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Bondi Junction, ColumnE: NSW, ColumnF: null, lat: null, lon: null}, {ID: 25, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Broadway, ColumnE: NSW, ColumnF: null, lat: null, lon: null}, {ID: 26, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Castle Hill, ColumnE: NSW, ColumnF: null, lat: null, lon: null}]}My objective is to place the 9 columns in a Tableview.Ive been following some tutorials that use JSONDecoder as well as URL Session.My 1st question is around the start of this JSON. (ie before the body)Will this effect JSONDecoder
2
0
957
Feb ’19
Reply to Correct JSON format for a Tableview
Here is my codeimport UIKit struct MyList: Decodable { let ID: Int let columnaID: Int let columnb: String let columnc: String let columnd: String let columne: String let columnf: String let lat: Double let lon: Double } class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let myapiurl = https://xxx-api.ap-southeast-2.amazonaws.com/xxxxxxxxxxxxxx let urlObj = URL(string: myapiurl) URLSession.shared.dataTask(with: urlObj!) {(data, response, error) in do { var List = try JSONDecoder().decode([MyList].self, from: data!) for columnb in List { print(columnb) } } catch { print(We got an error) } }.resume() } }That is giving me error at line 27 Variable 'List' was never mutated; consider changing to 'let' constant
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’19
NS Table sorting sorts the array itself ?
Looking through info for sorting by column, I've seen mentioned that the data array is sorted then the data is reloaded into the table ? Also a mention that if I bind through IB to an array controller it does not sort the original array ?One more thing .. The array I'm using is a struct which I'm not too sure about using, the only examples I've seen are single structured arrays.
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
776
Feb ’19
Reply to Correct JSON format for a Tableview
I have been given an api which outputs the followingYou should better add how you have output that JSON, which prevents some sort of easy misunderstanding.I assume it is the whole response from your API.And with pretty-printed: { statusCode: 200, headers: { Access-Control-Allow-Origin: * }, body: [ { ID: 29, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Not Listed, ColumnE: null, ColumnF: null, lat: null, lon: null }, { ID: 22, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Canberra, ColumnE: ACT, ColumnF: null, lat: null, lon: null }, { ID: 24, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Bondi Junction, ColumnE: NSW, ColumnF: null, lat: null, lon: null }, { ID: 25, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Broadway, ColumnE: NSW, ColumnF: null, lat: null, lon: null }, { ID: 26, ColumnAID: 12, ColumnB: Blah, ColumnC: , ColumnD: Castle Hill, ColumnE: NSW, ColumnF: null, lat: null, lon: null } ] } Outlined:{ statusCode: 200, headers: {...} body:
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’19
Reply to Using a .plist to populate a tableView
In a database, which is what you are talking about, at least conceptually, rows are all identical. What you are talking about is adding a new column. Each column is unique.A table view just displays a grid (organized in rows and colums) from an array. Where you get the array data from or what you do with the array data is a separate issue. You can definitely use a plist to start with.In a table view, you normally don't do that kind of specific row checking for data. You just dump the data in an array and the table displays it all.
Feb ’19