Search results for

column

2,050 results found

Post

Replies

Boosts

Views

Activity

Reply to tableview mousedown
it would be almost good, but I forgot to tell my App is for macOSX, so the table is a NSTableView and I don't see any didSelectRow functionEven if the function exists somewhere, it would not be such a good solution, because the click of the column can be only the first time the row will be selected. After, the corresponding row would be selected and the function will not be called anymore
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’17
Include small icon in article content
Is there any way to add an icon alongside text content in the article?I've tried using the column layout to define the grid, but the grid columns vary/scale across devicesFor example, using the column layout, the column 1 icon maybe ok on iPad, with text after that.However, it won't be indented on the iPhone display size, showing above the text instead.Here's a sample layout I'm looking for.Some text content... [icon] Some text here Some more text content...Thanks.
0
0
391
Sep ’17
UITableView Scroll issue with 100% cpu usage static
Hi to all!I'm new on Apple Developer Program so I'm sorry for any bad-practise on this Forum.I'm testing our applications on iOS 11 beta 8 (Xcode beta 6) and I'm getting stuck with an Hard issue on UITableView.The scenario is:# We have a 500+ rows on a UITableView with 8 columns.# When we scroll there is no issue, when the table stop scrolling the cpu usage jump up to 100%.# If we have scrolled a small number of rows the cpu usage drop down after one second.# If we scroll at half table the cpu usage jumps to 100% and never go down.It seems to be a problem with CoreFoundation while animating the scroll, here there is the instruments record:https://www.dropbox.com/sh/mk13pf15b08imof/AADc-XJJjmrp6ZKZGqD68Mola?dl=0As you can see from those screenshots there are 2 core processes wich are looping and put cpu at highest usage:1.99 s 62.4% 0 s __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__1.19 s 37.3% 0 s __CFRunLoopDoTimersI don't know why this happens in iOS 11, on iOS 10.3.3 there wasn't this issue, t
3
0
1.8k
Sep ’17
Limit to the length of code?
I'm creating a world in Learn to Code 2: World Creation and everything works fine until the last few lines of my code (below: labeled //LAST FEW LINES). The app isn't indicating there's an error and I can't find one. When I run my code step by step, it just stops before the last few lines as if they aren't there. Is there a limit to how many lines of code you can wri for each activity?// Declaring Letter Partsvar straightLineOfKColumn = [ Coordinate(column: 11, row: 11), Coordinate(column: 10, row: 11), Coordinate(column: 9, row: 11), Coordinate(column: 8, row: 11), Coordinate(column: 7, row: 11)]var upperLineOfK = [ Coordinate(column: 9, row: 10), Coordinate(column: 10, row: 9), Coordinate(column: 11, row: 8) ]var lowerLineOfK = [ Coordinate(column: 7, row: 8), Coordinate(column: 8, row: 9)]var straightLineOfB = [ Coordinate(column: 11, row: 4), Coordinate(column: 10, row: 4), Coordinate(column
0
0
358
Sep ’17
Getting ERROR ITMS-3000 from iTMSTransporter after adding <subtitle> to my itms file.
I'm adding <subttile> and <promotional_text> to my itms metadata.xml file but iTMSTransporter complains with a ERROR ITMS-3000. ERROR ITMS-3000: Line 16 column 25: element subtitle not allowed anywhere; expected the element end-tag or element description, keywords, privacy_policy_text, privacy_url, software_screenshots, software_url, support_url or version_whats_new at XPath /package/software/software_metadata/versions/version/locales/locale[27]/subtitle ERROR ITMS-3000: Line 17 column 33: element promotional_text not allowed anywhere; expected the element end-tag or element description, keywords, privacy_policy_text, privacy_url, software_screenshots, software_url, support_url or version_whats_new at XPath /package/software/software_metadata/versions/version/locales/locale[27]/promotional_textI thought it was a probelm with the version of iTMSTransporter embedded in Xcode 8 but I'm seeing this also with Xcode 9 GM.Anyone else seeing this? Any workaround?
0
0
473
Sep ’17
Would Accelerate improve this bit permutation function?
I’m working on a shuffling program that treats an array of bytes as a something-x-4 bitarray and randomly permutes each column of four bits. Here’s its current set-up, in Swift 3:// permutation shift amounts for four items let perms = [ (0, 0, 0, 0), (0, 0, 1, 3), (0, 1, 3, 0), (0, 2, 3, 3), (0, 1, 1, 2), (0, 2, 0, 2), (1, 3, 0, 0), (1, 3, 1, 3), (2, 3, 3, 0), (3, 3, 3, 3), (2, 3, 1, 2), (3, 3, 0, 2), (1, 1, 2, 0), (1, 2, 2, 3), (2, 0, 2, 0), (3, 0, 2, 3), (2, 2, 2, 2), (3, 1, 2, 2), (1, 1, 1, 1), (1, 2, 0, 1), (2, 0, 1, 1), (3, 0, 0, 1), (2, 2, 3, 1), (3, 1, 3, 1) ] func getByteBits(_ bytearray: inout UnsafeMutableBufferPointer<UInt8>, _ index: Int) -> UInt8 { let (byte, bit) = (index >> 3, UInt8(7 - (index & 7))) return (bytearray[byte] >> bit) & 1 } func getMask(_ index: Int) -> UInt8 { let bit = UInt8(7 - (index & 7)) return 1 << bit } // ‘bytearray’ is array of UInt8s, ‘randarray’ is array of random UInt32s func matrixQuadShuffle(_ bytearray: inout [UInt
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
446
Sep ’17
Reply to Missing "Download Size" column in "App Store File Sizes" in iTunes Connect
Confirm that the Download Size column has been removed, but if you're willing and able to open the web inspector and track the AJAX requests being made to the iTunes Connect API, the API endpoint ending in `/details` still includes the data you're looking for in the JSON response, e.g.: sizesInBytes: { 10.5-inch iPad Pro: { compressed: 8228911, uncompressed: 15220736 }, 10.5-inch iPad Pro Wi-Fi + Cellular: { compressed: 8228911, uncompressed: 15220736 }, 12.9-inch iPad Pro (2nd generation): { compressed: 8228911, uncompressed: 15220736 },`compressed` is the Download Size and `uncompressed` is the install size.I haven't dug too deeply into iTunes Connect API access but I wouldn't be surprised if this same data were exposed.All that said, there might be a very good reason why this column was removed, so maybe the data returned in the API is misleading.
Sep ’17
Reply to Add to Device Enrollment Program
Well, I got mine to work. First thing I had to fix was my wireless. I added a profile to a network that we use here that goes right to the internet without any firewall rules. Someone in Jamfnation posted this (which is how I got it to work for me): Updated/Restored iPads to iOS 11 -- a prerequisite action for adding to DEP.In Apple Configurator 2.5-> Click Prepare Button-> Ticked the Option Add to Device Enrolment Program-> unticked the automate enrolment (I like to setup from the iPad for a true OTA config).-> Created a DEP Wifi profile that uses the MacBook Pro Internet Sharing SSID-> Configured the remaining steps relating to supervision and iOS steps (i selected: don't show any).-> When it asked for the Apple ID to add to DEP, I chose the account that has the 'Device Manager' or 'Administrator' role in Apple School Manager (ASM).In ASM, go to MDM Server -> Devices added by Apple Configurator 2-> Keep an eye on the number of devices added on the Devices added by Apple Configurator,
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’17
Do you know how to auto populate the "Date" in a Numbers spreadsheet?
I've looked everywhere for the solution and couldn't find a thing. Here is what I have. Column A of my spreadsheet is the Date column. The rest of the columns are text or data. What I want to happen is column A will autopopulate Todays Date when any data is entered in column B. If you can figure it out you are definatly smarter than the average bear.Any suggestions or comments would be appreciated.Thanks for looking
0
0
374
Sep ’17
tableview reloadData() has bizarre behavior
I have had this question on stackoverflow for a couple days now and no one there can figure it out, so I thought I would try here:I have a tableView with some custom cells. The columns are sortable with NSSortDescriptor. But the tableView.reloadData() does not refresh the custom cells.[code]extension DeviceListViewController:NSTableViewDataSource, NSTableViewDelegate{ func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView?{ var result = tableView.makeView(withIdentifier: (tableColumn?.identifier)!, owner: self) as! NSTableCellView if (tableColumn?.identifier)!.rawValue == Name { result.textField?.stringValue = homedevices[row].name result.imageView?.image = homedevices[row].image } else if (tableColumn?.identifier)!.rawValue == DeviceGroup { let buttoncell = result as! ButtonCellView buttoncell.selectedItem = homedevices[row].button result = buttoncell } else if (tableColumn?.identifier)!.rawValue == Brightness { let slidercell = result as! BrightnessSlid
4
0
3.1k
Oct ’17
Reply to tableview reloadData() has bizarre behavior
What I mean is that I have a subclass that inherits NSTableCellView. I have a few cells that do something like this:class BrightnessSliderCellView: NSTableCellView { var sliderValue: Int = -1 @IBOutlet weak var brightnessSlider: NSSlider! override func draw(_ dirtyRect: NSRect) { super.draw(dirtyRect) if sliderValue < 0 { brightnessSlider.isEnabled = false } else { brightnessSlider.isEnabled = true } brightnessSlider.integerValue = sliderValue }}I can sort my homedevices array and do a tableView.reloadData() and see via console logs that the sliderValue for each row in the table is getting the correct sorted data. But the sliders do not change, ie: they stay the same value, and stay disabled/enabled if they were like that on inital load. I can see the other columns that do not contain subclassed NSTableCellView cells change when sorted. The only way that I can see that the sorting worked on these subclassed cells is by closing the window and reopening. I don't understand what is going on. I have n
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’17