Search results for

column

2,050 results found

Post

Replies

Boosts

Views

Activity

EPF Importer data errors on wrong encoding?
I don't know what is going on but suddenly if I want to ingest both video and application data into database using EPFImporter tool I got weird errors:2017-12-27 18:29:20,867 [ERROR]: Fatal error encountered while ingesting '/Users/administrator/Documents/appromocje/full/itunes20171220/video'Traceback (most recent call last): File /Users/administrator/Documents/appromocje/EPFIngester.py, line 129, in ingestFull self._populateTable(self.tmpTableName, skipKeyViolators=skipKeyViolators) File /Users/administrator/Documents/appromocje/EPFIngester.py, line 379, in _populateTable cur.execute(exStr) File /usr/local/lib/python2.7/site-packages/MySQLdb/cursors.py, line 205, in execute self.errorhandler(self, exc, value) File /usr/local/lib/python2.7/site-packages/MySQLdb/connections.py, line 36, in defaulterrorhandler raise errorclass, errorvalueOperationalError: (1366, Incorrect string value: 'xF0xA0xA9xA4xE6xBD...' for column 'artist_display_name' at row 2)or:2017-12-27 18:29:21,514 [ERROR]: Fatal error enco
0
0
661
Dec ’17
NSTableView: dynamic columns
I need to display a tableView without knowing all of the columns at compile time.The names, formats (and of course values) of some columns are given by a query during executing time.So I thought I have to override the make function of tableView as follow:override func make (withIdentifier identifier: String, owner: Any?) -> NSView? { if identifier != ligne24 &&{ // ligne24 is one of the identifier(s column I can't build on compile time return super.make(withIdentifier: identifier, owner: owner) } let view = NSTableCellView() let txt = myNewTextField() txt.identifier = identifier view.subviews.append(txt) return view }Of course, in another place of my code, I have added this:column = NSTableColumn (identifier: ligne24)column.title = some titletableView.addTableColumn(column)and infunc tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView?I put the correct value in the textfieldat executing time, table is ok, I can see the
8
0
3.5k
Dec ’17
Reply to NSTableView: dynamic columns
I can think of two possible reasons why this might happen:1. You subclass NSTableView to override makeView (withIdentifier:owner:), but you didn't actually cause an instance of the subclass to be created. Can you verify that your custom makeView method is actually executed?Note that the method is makeView, not make, but I assume that's just a typo in your post.2. You create a NSTableCellView, and you add a text field subview, but you have no code to position the text field within the cell, nor any code to set the size of the text view. If its size is zero, or it's positioned outside the parent view, the column will look empty.Your technique for creating these cells is not a good one. Instead, you should do the following:— Create a XIB file that contains a prototype NSTableCellView for the ligne24 column.— For the File's Owner pseudo-object in the XIB, specify the class of your NSTableViewDelegate object (e.g. a view controller class).— Set the cell view's identifier to ligne24.— Add a text v
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’17
Reply to NSTableView: dynamic columns
the name of the method is make, it's not a typo. If I use makeView, Xcode writes'makeView(withIdentifier:owner:)' has been renamed to 'make(withIdentifier:owner:)'You was right when you told me that I had no code to position the text field within the cell. So width and height were nul and it did'nt appeared. So problem is solved.But I wanted to tell you that I can't use a XIB file fro the columns of this NSTableView. My colum called ligne24 was just an example. I really don't know neither the names of the columns, nor how many columns will be displayed by this table.That's why I needed to override the make method.for all my other tables, I use a XIB file, of course.Thank's
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’17
Reply to NSTableView: dynamic columns
>> problem is solvedGood to hear.>> the name of the method is make, it's not a typoIn Swift 4, the name of the method is makeView, so perhaps you are using Swift 3? Anyway, it's not important, since you're clearly overriding the correct method.>> for all my other tables, I use a XIB file>> I can't use a XIB file fro the columns of this NSTableViewI think we are talking about two different things. I was talking about using a XIB file for just the NSTableCellViews, not the entire table. In principle, a cell view XIB can supply cells for one column or multiple columns, and one column can use multiple cell views.Your code to create the cells programmatically will (does!) work, but with the limitation that cells aren't automatically re-used like normal cells. This will have some impact on performance, but if the table is fairly small this may not matter to you.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’17
Reply to NSTableView: dynamic columns
So, back to what I said before. When you have a cell in a XIB file, you must register the name of the XIB using NSTableView's register(_:forIdentifier:) method before is populated with data. This is typically done in some viewDidLoad method.In your particular scenario, the difficulty comes from managing the cell identifier property, which controls the reuse of existing cells. In your tableView(_:viewFor:row:) method, it doesn't actually matter what your table column identifier is, so long as you use it to choose a cell with a suitable cell identifier. The default is to have them match, because it's easier to keep track of them that way, but it doesn't have to be so.However, in that delegate method, when you invoke makeView(withIdentifier:owner:) specifying a cell identifier that has your XIB file registered against it, the actual cell must have that same identifier. (Otherwise, the documentation says, makeView(withIdentifier:owner:) will return nil.) In case you're keeping track, we're now up to 3 fl
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’17
Reply to NSTableView: dynamic columns
I think its OK noew, but it was a big amount of workFirst I convert to Swift4, and it was not a peace of cake.Then, lucky me, I don't know the number of columns of my NSTableView, but tthey are all of the same type.So I put a prototype of this NSTextfielCell in the window's XIB, and subclass the makeView method to call the extra columns cells with the proper cell identifier written in the XIBMy brain brain hasn't shut down, but it was closeThank's
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’17
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
Reply to NSTableView: dynamic columns
You should be able to catch the exception by setting an exception breakpoint in your project (Command-8 in Xcode, use the + at the bottom left). What you're primarily interested in is the backtrace (which should also be logged after the above assertion messages, even without the breakpoint), to see if it's something triggered by your code.But it's a strange error to get. Have any columns ever been removed by the time you get to this point?
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’18
Reply to "Ready to submit" and no way to Submit
I'm having this same problem... An app we submitted for Beta (new version, not a new app) yesterday is available only to the iTunesConnect testers. No external testers are getting the build, and in iTunesConnect the build is marked as Ready To Submit in the External Testers column. We've tried logging in/logging out, tried removing and re-adding testers, tried adding a tester individually, tried adding a new group... Nothing seems to have an effect. Please help, Apple... You're our only hope.
Jan ’18
Reply to Apps reverting to generic icon
I had the same problem, too (10.13.3 beta 4).I noticed there was a problem when I started to receive Telegram notifications with the generic app icon. When I look at the Applications folder, many app were missing the correct icon, so I restarted the Mac. After the reboot, all the apps regained the correct icon in the Applications folder (view as Column), in the Get Info window and in the Dock, except for Telegram.app that lost its icon in the Dock and in the Get Info window. To fix this I simply uninstalled and reinstalled Telegram from the MAS… but there should be a better way for sure.Did you try to install Beta 5 to verify if it fixes this issue?
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’18
iTMSTransporter Upload iMessage Screenshots
When you are using iTMSTransporter in Upload mode to upload iMessage Screenshots, how do you format the screenshots in the XML.It doesn't seem to be documented in neither:https://help.apple.com/itc/transporteruserguide/http://help.apple.com/itc/appsspec/We found that FastLane is using the following display_target (https://github.com/fastlane/fastlane/blob/master/deliver/lib/deliver/app_screenshot.rb)iOS-3.5-in-messagesiOS-4-in-messagesiOS-4.7-in-messages..Such as:<software_screenshot display_target=iOS-5.5-in-messages position=1> <size>851668</size> <file_name>en-US_iMessage_iPhone_6Plus_01.jpg</file_name> <checksum type=md5>89f5e1ccb71a25c9f0b57b63270c0961</checksum></software_screenshot>However, we get the following error when doing using the Verify mode of iTMSTransporter:ERROR ITMS-3000: Line 646 column 80: value of attribute display_target is invalid; must be equal to Mac, appletvos, iOS-3.5-in, iOS-4-in, iOS-4.7-in, iOS-5.5-in, iOS-5.8-in, iOS-App
0
0
828
Jan ’18
Reply to Debugging the output of vertex shaders
You can only view vertex shader outputs if your shader has a parameter using the [[stage_in]] qualifier.If your shader is using the [[stage_in]] qualifier you can view the buffer outputs by A) performing a GPU Capture and then B) selecting Vertex Attributes in resources view when your draw call is selected in the capture. You can can see the outputs in right most columns (you may need to scroll horizontally)
Topic: Graphics & Games SubTopic: General Tags:
Feb ’18
EPF files bad formatted
So... after cracking my head up for hours, having contacted EPF support team and still waiting answer, I'm going to expose the problems I'm having with EPF (enterprise partner feed) although I cannot understand how there's no one complaining already.First I want to say, I'm using the Apple EPF tool, with some modifications like using the 'mysql.connector' instead of the 'mysqldb'. Although the problem resides in EPF files, not the importing tool.EPF files are .tbz (tar bz2) that when uncompressed turn into plain text files. They have some kind of headers preceeded by '#' which explain column names and types, and foreign keys. Then, all the rows.Columns and rows are separated by special chars (all of this is explained in EPF documentation):Field Separator (FS): SOH (ASCII character 1)Record Separator (RS) : STX (ASCII character 2) + “n”Well, so the problem is that some rows have the field separator (FS) char when it shouldn't be there, so it splits one column into two, moving the content of o
0
0
429
Feb ’18