Search results for

column

2,051 results found

Post

Replies

Boosts

Views

Activity

Reply to [NSSavePanel savePanel] crashes with NSInternalInconsistencyException
>> [NSSavePanel(FileBrowserViewFileBrowserView) _makeFileBrowserView]Historically, NSavePanel has had trouble with its column view, trying to display a file preview in the last pane, and your crash appears to be happening during the setup of this preview.Does the problem go away completely if you switch to list or icon view? Does the problem tend to occur with a particular file, or particular kind of file, selected in column view? If so, this preview issue may be the cause, and it may be outside your control.
Topic: UI Frameworks SubTopic: AppKit Tags:
Aug ’17
The playground project for the Swift tour no longer displays the output in their right column. This was working prior to upgrading to the lasted Xcode version...
Prior to updating to the latest Xcode version, I was able to use the Swift Tour playground project, which included showing output an variable values in the far right column. Now with Swift 2, this information no longer is displayed. Is there a setting or flag that needs attention?Thanks...
1
0
690
Jan ’16
Reply to Tokenupdate
Hi,if you're storing the tokens in a database (e.g. MySQL) you can set the SQL UNIQUE constraint for the column containing the tokens; this prevents a token from being stored twice. The UNIQUE constraint exists in MySQL, SQL Server, Oracle and MS Access databases. The following SQL statement creates a UNIQUE constraint on the 'Token' column when the DeviceInformation table already exists:ALTER TABLE DeviceInformation ADD UNIQUE (Token)All the best,Alex
Jun ’15
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 Illegal NSTableViewDataSource
Do you create the tableView in IB ?If so, look at hierarchy of objects in IB for the viewController.Should haveView ScrollView ClipView TableView Column1 => That's the identifier you use TableCellView => That's the identifier you have to use TableViewCell Column2Do you get this ?Then set the identifier for the tableViewCell (if you have multiple columns, if they use the same cell prototype, just need to define once.Note: you could also give the same identifier for each column and its tableCellView (not the TableViewCell !) and keep using your code.To check the problem is caused by the identifier, add a print:extension RegistrationReportsViewController: NSTableViewDelegate { func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? { if tableColumn == nil { return nil } // Extra safety if let cell = tableView.makeView(withIdentifier: (tableColumn!.identifier), owner: self) as? NSTableCellView { let column = tableView.tableColumns.firs
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’20
Reply to Xcode Build Failure
@darkpaw: I have included snippet of my code below as reference. The 'width' parameter can be changed later ... However, same error would still show up: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions ... struct ViewShelter: View { // TH: helps safely update UI. @State private var rowEven: Bool = true @State private var pathBlocked: Bool = true @State private var borderColorBackEnd: Color = Color.black @State private var borderColorBackEndOperation: Color = Color.black var body: some View { VStack (alignment: .leading){ ForEach(0...(ViewConstants.TARGET_STRING_BACK_0_DIMENSION-1), id:.self) { row in if let row_x = shelterViewModel.getShelter(row: row) as [RecommendationEntity]? { if let row_x_count = row_x.count as Int? { if row_x_count > 0 { let row_x_columns = Array(0...row_x_count-1) GeometryReader { geometry in HStack(alignment: .center) { ForEach(row_x_columns, id:.self){ column in self.rowEven = (row%2==0)
Apr ’25
Reply to Question About Swift
So you're making the columns wider as necessary? That's a bit of work, as you've seen, to compute the widths. What happens if a name has a million characters? So, there is more to think about here.A simpler approach is to keep the column widths, but then you can't show all the data. So, what can you show instead? You can solve the crashing problem by only showing as much data as fits, but that's going to be misleading to anyone using the table.Either way, solving the problem takes a bit of analysis and planning.
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’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
Reply to iOS 13 crash creating reminders
This is usually the result of a storyboard outlet connected to a class property that is no longer there. That is, you might have removed/renamed a property in code that was still connected to an outlet. This is not handled automatically by Xcode, if you remove a connected property in code, you also have to remove that connection in storyboard. To check for this, switch to storyboard and bring up the utilities column (upper right). Select the element and the connections inspector (top right of the utilities column). Check if there are any unwanted connections and remove them if necessary.
Topic: App & System Services SubTopic: General Tags:
May ’20