Search results for

column

2,052 results found

Post

Replies

Boosts

Views

Activity

Reply to Crashed at DidSelectRowAt
You are welcome. I am the one should say thank you!func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return wordLists.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { guard let cell = tableView.dequeueReusableCell(withIdentifier: cell) as? SearchCell else { return UITableViewCell() } if wordLists.count != 0 { let currentRow = wordLists[indexPath.row] cell.resultLabel.text = currentRow } return cell } //Partially code in my setupDatabase(suggWords) if let tableName = databaseName { do { let querySQL = Some sql query let results:FMResultSet = try database.executeQuery(querySQL, values: nil) while results.next() { if let x = results.string(forColumn: some column keyword) { wordLists.append(x) } } if isFromWebView == false { if wordLists.count == 0 { DispatchQueue.main.async { self.tableView.isHidden = true self.tableView.reloadData() } } else { DispatchQueue.main.async { self.tableView.reloadData() } } } el
Aug ’18
Reply to NSSourceList not showing text
OK, I figured it out.The difference between the preconfigured outline view and the preconfigured source list (there isn't actually a NSSourceList, it's just a NSOutlineView with a different preconfiguration) is in the cell identifiers.In the outline view, there is only one cell in each column, and the cell identifier is left at the default, which means automatic. In this case, the cell identifier is actually the table column identifier, which is where you typically get the cell identifier from in your outlineView(:viewFor:item:) delegate method.In the source list, there is only one column, but it has two cells (one for the group header and one for the detail row), and they come preconfigured with cell identifiers HeaderCell and DataCell respectively. Set up that way, you can't follow the usual pattern of using the column identifier, since neither cell matches the column identifier.To fix this, you can just use the HeaderCell and DataCell identifiers directly in out
Topic: UI Frameworks SubTopic: AppKit Tags:
Aug ’18
Reply to Xcode HealthKit com.apple.developer.healthkit.access entitlements warning just started appearing
True doesn't sound like a legal value for this. If the value is supposed to be Boolean, then you need to make sure that the plist entry is set to that value type (right-click on the Type column value, and choose Boolean), and the possible values will show as YES or NO.I think that new plist keys default to String value types, so you've probably given it the literal string True.
Aug ’18
Problem with App Store Connect
anyone experiencing app store connect problem lately?the In-App Purchase opting in my App does not seem to be working. The pricing column seems to be loading forever without me able to edit, add or change any value.i cant even switch on 'Content Hosting' (Turn it On, Save, but the webpage keep changing it back to OFF)Cant upload App Store Icon with a valid file.-1024 x 1024, jpg file without alpha. - error message: your file cannot be loaded. try again. did this both on mac and pc. same thing.
2
0
3.0k
Aug ’18
About 3D coordinate system of cameraCalibrationData.extrinsicMatrix
I would like to ask about cameraCalibrationData.extrinsicMatrix translation 3x1 column vector data.I am using iPhone X(iOS11.4.1). In dual camera dual photo delivery mode, wide-area photo's extrinsicMatrix translation 3x1 column vector data indicates [-13.3001, -0.00406908, 0.0237064]. So it means that wide-area camera(lower position)' position is translated to [-13.3001, -0.00406908, 0.0237064] compared to the reference camera(telephoto camera(upper position)). So, introduced 3D coordinate system's X axis direction will be from bottom to top of the iPhone device.Is it correct?
0
0
797
Aug ’18
About 3D coordinate system of cameraCalibrationData.extrinsicMatrix
I would like to ask about cameraCalibrationData.extrinsicMatrix translation 3x1 column vector data.I am using iPhone X(iOS11.4.1). In dual camera dual photo delivery mode, wide-area photo's extrinsicMatrix translation 3x1 column vector data indicates [-13.3001, -0.00406908, 0.0237064]. So it means that wide-area camera(lower position)' position is translated to [-13.3001, -0.00406908, 0.0237064] compared to the reference camera(telephoto camera(upper position)). So, introduced 3D coordinate system's X axis direction will be from bottom to top of the iPhone device (Y axis: left to right, Z axis: front to back).Is it correct?
7
0
2.6k
Aug ’18
How to remove all columns from NSOutlineView?
The question sounds simple but it is not in case the NSOutlineView has an outline table column. In this case removeTableColumn: does nothing but says that nil should be sent to setOutlineTableColumn:.BUT the docs say that a parameter of nil for setOutlineTableColumn: is being ignored and this is unfortunately also true. 😕So, how do I get rid of all columns?
Topic: UI Frameworks SubTopic: AppKit Tags:
5
0
1.5k
Sep ’18
Reply to How to remove all columns from NSOutlineView?
I don't understand the question. Under what circumstances would it be useful to get rid of all columns?>> in case the NSOutlineView has an outline table columnThis is not a case in any reasonable sense. The defining feature of an outline view is that is has an outline column.What's the exact error message you got from trying to use removeTableColumn: on the outline column? I wouldn't be surprised (as an unrelated issue) if the error message is incorrect for historical reasons.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’18
Reply to How to remove all columns from NSOutlineView?
For example it is useful if you like to build up the view from scratch (with different number of columns and different data in the columns). So, just remove all columns and start again. This is mostly easier than doing all the modifications to existing columns and add and remove individual columns.Here is the error message: *** NSOutlineView cannot remove outlineTableColumn with removeTableColumn:. Use setOutlineTableColumn: instead.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’18
Reply to How to remove all columns from NSOutlineView?
>> just remove all columns and start againFor that scenario, you can easily work around the issue by adding a new outline table column first, then delete all the other columns.FWIW, it's not obvious that there's a really good reason for this restriction, at the API level, so it probably reflects some implemention detail. It would be reasonable to file a bug report to allow deletion of the outline column, but I wouldn't hold my breath that it would be done any time soon. 🙂It would also be reasonable to file a bug report against the message.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’18
Reply to How to remove all columns from NSOutlineView?
Hi,I have already filed a bug report. It is in the meantime more than 5 years old, I believe.😟The issue with the workaround you mentioned is that it triggers another bug😠 (I already had the same idea). Therefore, I was looking for a second workaround. Unfortunately, I cannot provide a simple example but the bug is similar to that:Assign the outline view to a scroll view (setDocumentView:) . Do not add any columns but remove it again and assign an new outline view. Change the size of the window containing the scroll view leads to a crash where the outline view is interpreted as a class for glyphs.The reason seems to be that the outline view is not correctly (immediately) released when assigning a new document view to the scroll view (retain count is increased by two when assigning the outline view but is only decreased by one when another document view is assigned). Under certain conditions this will crash.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’18
Reply to How to remove all columns from NSOutlineView?
Hmm, interesting.In the scenario you describe, I think I'd be inclined to try replacing the entire sub-hierarchy from the scroll view. Specifically, I'd put a starter outline view (along with its scroll view) in a nib, and load the nib each time I wanted a fresh start on the outline view.(I'm not a big fan of creating UI elements programmatically, but you could create this sub-hierachy in code, too.)The other choice would be to never remove the outline column, but just reconfigure it for your new column layout.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’18
Reply to About 3D coordinate system of cameraCalibrationData.extrinsicMatrix
I'm seeing Apple Developer's documantation (the title is Understanding World Tracking in ARKit).It includes following description.In all AR experiences, ARKit uses world and camera coordinate systems following a right-handed convention: the y-axis points upward, and (when relevant) the z-axis points toward the viewer and the x-axis points toward the viewer's right.It is very curious that the direction of the x-axis in ARKit does not match to the wide-area photo's extrinsicMatrix (in dual camera dual photo delivery mode) in AVFoundation.I'll explain in detail. The device I'm using is iPhoneX which two camera (telephoto camera and wide-angle camera) is embedded. Telephoto camera is located in lower position, and wide-angle camera is located in upper position. I confirmed that in dual camera dual photo delivery mode, wide-area photo's extrinsicMatrix translation 3x1 column vector data indicates [-13.3001, -0.00406908, 0.0237064]. It means that in x-direction the wide-angle camera is tarnslated to -13.30
Topic: Media Technologies SubTopic: Audio Tags:
Sep ’18
what fetchChange will get?
let's say a record have column a, b, c three columns,at one changepoint, on device A, data was updated twice:1. update b = 12. update c = 2When fetchChange on device B, what will it get? one change or two changes? (during the change, deviceB was offline and startup)Will it get the partial change record or the whole record?During the test, sometimes, I got two changes, and sometimes I just got one change (maybe it is the consolidated final change?)why is it not consistent?
3
0
859
Sep ’18
Reply to Mojave beta 6 breaks Applescripts
This worked for me, but it requires converting to an app first!1. Open the app's plist file is xcode2. add row (from right click context menu)3. in ‘key’ column select ‘Privacy - AppleEvents Sending Usage Description’ from the drop down menu (you need to scroll down)4. add ‘This script needs to control other applications to run.' in the value column.5. Build the application again... it should now prompt for accessibility and automation permissions.Hope it helps...
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’18