Search results for

“column”

2,085 results found

Post

Replies

Boosts

Views

Activity

Reply to UILabels of three UIPickerViews revert to previous value (sometimes) and change without selection.
I downloaded the file and the pickers show on a iPhone 7 + device, a simulator iPhone Xr, and every other simulator tested in xcode 10.3. iPad Air is the best to show the below situation. The values in the pickers are value 1 or value 2, and can be changed with three fingers in the simulator.| Value 1 | nothing | Value 1 | Value 1 |-- -- -- -- -- -- --- -- -- -- -- --- -- - -- --- - - -- -| Initial text 1 | nothing | Initial text 3 | Initial text 4 |I also see the contraint errors, but there is nothing fatal or overriding the collection view size for item method (pickers are shown - maybe it is not clear that they are pickers because the text is similar to the other labels.As above, if I use the picker in the first column to select value 2, the data in that column updates, but the picker itself reverts to its former value - Value 1 - and the picker in the third column changes its display to Value 2 (no change to the data in that column).| Value 1 | nothing | Value 2 | Value
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’19
Reply to ScrollView and prefersDefaultFocus currently incompatible?
And here is the working solution for tvOS 15: struct ContentView: View { @FocusState var focusedItem: String? @State var items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] let columns: [GridItem] = Array(repeating: .init(.flexible()), count: 4) var body: some View { ScrollView() { LazyVGrid(columns: columns) { ForEach(items, id: .self) { item in Button { } label: { ItemView(title: item) } .focused($focusedItem, equals: item) .onMoveCommand { moveCommandDirection in guard let index = items.firstIndex(where: {$0 == item}) else { return } if moveCommandDirection == .down, index >= items.count - columns.count { focusedItem = items.last } } .padding(.bottom, 8) } } } } } If you have any workaround for tvOS 14 I'll be appreciated it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
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
703
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 UISwitch in tvOS
This is true if you put them side-by-side. However, if you stack them all in a column then they work like UISwitches. -Brian
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to SwiftUI - Split View on iPad problem
SwiftUI uses the default two column behaviour that does what you are experiencing. I had to use a UISplitView at the top level of my app to get around that.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’21
Reply to TableView Functions Missing Items
I'm looking for a sample TableView that will dump a One Demential Array (myArray) breaking every 6 sections or columns..
Replies
Boosts
Views
Activity
Mar ’17
Reply to UILabels of three UIPickerViews revert to previous value (sometimes) and change without selection.
I downloaded the file and the pickers show on a iPhone 7 + device, a simulator iPhone Xr, and every other simulator tested in xcode 10.3. iPad Air is the best to show the below situation. The values in the pickers are value 1 or value 2, and can be changed with three fingers in the simulator.| Value 1 | nothing | Value 1 | Value 1 |-- -- -- -- -- -- --- -- -- -- -- --- -- - -- --- - - -- -| Initial text 1 | nothing | Initial text 3 | Initial text 4 |I also see the contraint errors, but there is nothing fatal or overriding the collection view size for item method (pickers are shown - maybe it is not clear that they are pickers because the text is similar to the other labels.As above, if I use the picker in the first column to select value 2, the data in that column updates, but the picker itself reverts to its former value - Value 1 - and the picker in the third column changes its display to Value 2 (no change to the data in that column).| Value 1 | nothing | Value 2 | Value
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’19
Reply to Smallest sticker size is larger than Classic Mac stickers
You could do that, but in your collection view you can't make your cells 100x100 if you want 4 columns on iPhone 6s like the Classic Mac stickers.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’16
Reply to ScrollView and prefersDefaultFocus currently incompatible?
And here is the working solution for tvOS 15: struct ContentView: View { @FocusState var focusedItem: String? @State var items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] let columns: [GridItem] = Array(repeating: .init(.flexible()), count: 4) var body: some View { ScrollView() { LazyVGrid(columns: columns) { ForEach(items, id: .self) { item in Button { } label: { ItemView(title: item) } .focused($focusedItem, equals: item) .onMoveCommand { moveCommandDirection in guard let index = items.firstIndex(where: {$0 == item}) else { return } if moveCommandDirection == .down, index >= items.count - columns.count { focusedItem = items.last } } .padding(.bottom, 8) } } } } } If you have any workaround for tvOS 14 I'll be appreciated it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
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:
Replies
Boosts
Views
Activity
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...
Replies
1
Boosts
0
Views
703
Activity
Jan ’16
Reply to Setting a Default Property Value with a Closure or Function
How does the computer know to create row two after the first 8 columns are added? Also, why is forced unwrapping needed as it applies to isBlack?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’18
Reply to Design Problem
The HStack is meant to be column headers for the list items and need the same styling This seam to be a short fall of lists in the dark mode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
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
Replies
Boosts
Views
Activity
Jun ’15
Reply to Problem with NSWindowCollectionBehaviorCanJoinAllSpaces
Typo in the third paragraph: the last sentence should be If the third and fourth columns also have rows scrolled out of view, they scroll normally in the second space.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’17
Reply to How to display Data in 2 columns in Table dynamically
So, what is your problem ?- create a tableView with 2 columns- create arrays for data sources (or a dictionary if id is unique)- use them in the tableview(displayAtPath:) function
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’17
Reply to Refreshable lists with 2 columns
It looks like the LazyVGrid is what I need to have for the columns, unfortunately the refreshable modifier is not working. Is it a bug or the refreshable modifier is available only on lists?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
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:
Replies
Boosts
Views
Activity
Dec ’17