Search results for

column

2,050 results found

Post

Replies

Boosts

Views

Activity

Reply to Error building instrumentspackage with latest Xcode 13.3
This sounds like you have the same column (same mnemonic) twice somewhere, maybe in a schema definition or when setting up a detail view. But in any case, what should happen is that the instrumentbuilder should not accept input with a duplicate column and instead report a compiler error at the correct line telling you about the duplicate. This doesn't seem to happen for you and this is likely a bug in the instrumentbuilder. Can you please file a bug report via Feedback Assitant.? If possible, please include the instrpkg file that is causing this issue or a simplified file that still reproduces the issue.
Mar ’22
Reply to Accessing Numbers cell values from Swift using Scriptingbridge
Should have added, yes Applescript is working fine but I want to do the processing in Swift: tell selection range set {j1, j2} to {column 1's address, column -1's address} set myResult to rows's cells j1 thru j2's value -- 2d-array for the range --rows's cell j1's value -- 1d-array for 1st column in the range set myCount to 1 set myRow to {} set myArray to {} repeat with myData in myResult set the end of myRow to item 1 of myData set myCount to myCount + 1 if (myCount) is greater than 10 then set myCount to 1 set the end of myArray to myRow set myRow to {} end if end repeat get myArray end tell then to write: set value of cell columnNumber of row rowNumber to myValue
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’20
Reply to SwiftUI LazyVGrid Positioning
Hi, I saw your question a few hours ago and I don't know if you are still looking for an answer at this time. Anyways, here is the solution with an explanation for anyone who might be interested in it. You have a LazyVGrid with two columns which is what you are seeing in the screenshot you've provided. UnitView(), TemperatureView() and CurrencyView() form the first column, whereas DistanceView() and TimeView() form the second column. Since you did not specify the alignment property, it assumed its default value, which is HorizontalAlignment.center in the case of LazyVGrid. If you specify alignment as HorizontalAlignment.leading, then the view would look somewhat like how you want it to look. But, it doesn't look good because the cards are not in the middle of the screen. To solve this, you would have to embed LazyVGrid into a LazyVStack, take the CurrencyView() out of the LazyVGrid, and place it outside LazyVGrid but within LazyVStack. struct ContentView: View { let columns
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’23
Reply to Delete items in collection view with custom layout
Ok... Heres the view controller code, and below it the layout code (poached from StackOverflow if I remember right):import UIKitclass testVCViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, ImagesCVLayoutDelegate { @IBOutlet weak var cv: UICollectionView! @IBOutlet weak var btn: UIButton! @IBAction func btn(_ sender: UIButton) { items.remove(at: 0) cv.deleteItems(at: [IndexPath(row: 0, section: 0)]) // THIS IS WHERE THE WARNINGS AND ERROR OCCUR. cv.reloadData() } var items = [1,2,3,4,5,6,7,8,9] // Data source. func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return items.count } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: cell, for: indexPath) as! zCollectionViewCell cell.lbl.text = (items[indexPath.row]) return cell } func numberOfSections
Topic: Programming Languages SubTopic: Swift Tags:
May ’18
Reply to "viewForTableColumn" vs "objectValueForTableColumn"
Thank you very much for your reply.I can supply you more explanation.In my NSTableView I want to show the components of the path of a file (5 or 6 components (fields)).In IB I create two columns. I create the others by program:nbcMax = 6;for (NSInteger col = [[tableView tableColumns] count]; col < nbcMax; col++){ NSTableColumn *tc = [[NSTableColumn alloc] initWithIdentifier:[NSString stringWithFormat:@tc%ld, col]]; [[tc headerCell] setStringValue:[NSString stringWithFormat:@%ld, col]]; [tableView addTableColumn:tc];}With viewForTableColumn only the first two columns, created with IB, are filled. The others exist but are empty :- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row{ NSTableCellView *cellView = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self]; NSArray *array = list[row]; NSInteger col = [[tableView tableColumns] indexOfObject:tableColumn]; if (col < [array count]) { NSString *str = [array obje
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’18
The iPhone set display and brightness to automatic, the App is placed in the dock column at the bottom of the desktop, and the icon showing the dark mode appears in the light mode. Is this a system problem?
The iPhone set display and brightness to automatic, the App is placed in the dock column at the bottom of the desktop, and the icon showing the dark mode appears in the light mode. Is this a system problem? device: iPhone 16 pro max system version: 18.2
0
0
273
Dec ’24