Search results for

column

2,048 results found

Post

Replies

Boosts

Views

Activity

Reply to Where does NSURLSession store ETag information?
Thank you! The column name through me off. Thought it was only storing the response body. Depending on whether NSURLSession implements freshness based on Last-Modified (doesn't look like it from the docs, have asked in a separate question, to be approved) I was keen on implementing it. For that purpose, is there a way to reuse whatever information is stored in the cache or expected to implement that independently?
Apr ’16
NSBrowser uncaught exception if you drag out the last item in a column
I'm getting an uncaught crash when dragging out the last item in the column in NSBrowser to another app (Finder), which will move the file it represents out. I set a breakpoint//Item is gone..already been removed from our collection [self.browser reloadColumn:0]Now right after that, I can get a call in the browser will display cell at row column via my delegate.... with the out of bounds index in the collection (the one I just removed).Now if I call self.browser loadColumnZero I avoid the crash, but I will lose the scroll position...ect.
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
405
Apr ’16
animation problem
I have 4 images in a column and would like them to move down in an animation. If the bottom most image gets below a certain y point, I would like to move it back to the top of the column. I would like the behaviour to repeat until I tell it to stop.So this is what I am trying to just get the images to keep moving down: @IBAction func SPIN(sender: AnyObject?) { UIView.animateWithDuration(0.90, animations: { for i in 0 ..< 4 { self.reel1images[i].transform = CGAffineTransformMakeTranslation(0.0, 51.0) } }, completion: { _ in self.SPIN(nil) }) }As you can see in the completion I would like to call it again so as mentioned, the images just keep going down. But this isn't working. The images move down 50, but then stop....like the completion doesn't execute so SPIN isn't called again or something. Why?Also, if I tell the animation to repeat, i.e.: @IBAction func Spin(sender: AnyObject) { UIView.animateWithDuration(1.0, delay: 0.0, options: .Repeat, animations: { () -> Void in for i in 0 ..&
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
318
Apr ’16
creating a multiple choice quiz, in plist
Hello, I'm very new to the game here, any help would be greatly appreciated. I am generating a quiz using a platform on Xcode. With roughly 7,000 questions that I have pre-generated in excel format I am trying to find a script which can convert my simple excel spreadsheet into appropriate plist. My spreadsheet is as simple as column A for the question, then column B,C,D,E for each question. Each row would then be a new question. Here's what I'm looking to have the plist turn out as https://imgur.com/CMUFJ8Y If anyone could point me in the general direction of how to figure this out I'd be so grateful!
0
0
701
Apr ’16
swift dynamic multiline text field
How do i create rows of mutilined text field dynamically (no Autolayout) using swift code. I want the column to expanded and shrink to see all the text let font = UIFont(name: Arial-ItalicMT, size: 20.0) let labelSize = rectForText(dbtext, font: font!, maxSize: CGSizeMake(100,999)) heightTV = labelSize.height print(heightTV ( heightTV )) myTextview = UITextView(frame:CGRectMake(0, nexty, 100, heightTV)) myTextview.text = dbtext myTextview.font = UIFont(name: Arial-ItalicMT, size: 17.0) myTextview.backgroundColor = UIColor.greenColor(); myTextview.textColor = UIColor.blueColor(); myTextview.scrollEnabled = true; myTextview.editable = false; myTextview.tag = index self.myscroll.addSubview(myTextview); print(myTextview_font (myTextview.font))
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
4.1k
Apr ’16
how to input user data from a tableview
I have a varialbe length list of categories and I want the user to be able to set a budget for each category.I do not want the values updated as the user edits but only when they hit a button.I have an NSTableView that displays the category names in one column and the current budget values in the second column.What I can't figure out is how to access the value for a given cell in the second column. I'm using a view based NSTableView and I can get the view at column N, row I but I don't know how to get the text value being displayed theThanks for any help
5
0
1.4k
Apr ’16
Reply to how to input user data from a tableview
You have a delegate function for tableView that just do this :func tableView(tableView: NSTableView, viewForTableColumn tableColumn: NSTableColumn?, row: Int) -> NSView?It gets data from the dataSource to display in the tableYou have to set a unique identifier each column in IB : name, ageYou have your data source (an array with 2 columns) that stores your data: items[row] is an array (you could alos use a dictionary)Here is from an excellent online tutorial (CocoaProgramming from AppleProgramming) an exampleimport Cocoa class Person: NSObject { var name : String var age : Int override init() { self.name = String() self.name = Yoda self.age = 300 super.init() } init(name: String, age: Int) { self.name = name self.age = age } required convenience init?(coder decoder: NSCoder) { self.init() self.name = decoder.decodeObjectForKey(name) as! String self.age = decoder.decodeObjectForKey(age) as! Int } } / extension Person: NSCoding { func encodeWithCoder(coder: NSCoder) { coder.encodeObject(sel
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’16
Reply to how to input user data from a tableview
I'm not sure I made my problem clearWhile I set the values in the table using the tableView method I'm allowing the user to change the values in the tableview by making the cells in the second column editable.I want to know how to retrieve the new values the user has entered from the table.I notice there are two versions of the tableView function. the first is called by the tableview to populate the cells.I'm unclear as to how/when the second version of the function is called:func tableView(tableView: NSTableView, setObjectValue object: AnyObject?, forTableColumn tableColumn: NSTableColumn?, row: Int) { an example of how to get the value for row n, column i of a tableview would be appreciated.Thanks for your help!
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’16
Language Codes for Apploader Mass Import
HelloIt looks like Apple made some changes on the way language codes are managed on their side and I cannot find the new codes for Chinese languages.Has anyone had some luck in finding the correct language code? I have tried every variation I could find of Simplified and Traditional Chinese language codes, but application loader always returns the error: The following header columns names are invalid: description zh-hant, displayed name zh-hant, displayed name zh-hans, description zh-hans
0
0
320
Apr ’16
Reply to properties of custom type not persisting?
My save function in GameScene:func saveGame() { let fetch = NSFetchRequest(entityName: GameState) do { let state = try moc.executeFetchRequest(fetch) as! [GameState] if state.count > 0 { moc.deleteObject(state[0]) try moc.save() } } catch { fatalError(Failure to save context: (error)) } let entity = NSEntityDescription.entityForName(GameState, inManagedObjectContext:moc) let state = NSManagedObject(entity: entity!, insertIntoManagedObjectContext: moc) state.setValue(cards, forKey: cardArray) state.setValue(topCards, forKey: topCards) state.setValue(moves, forKey: moves) state.setValue(time, forKey: time) do { try moc.save() } catch { fatalError(Failure to save context: (error)) } }Loading the elements in didMoveToView:let fetch = NSFetchRequest(entityName: GameState) do { let state = try moc.executeFetchRequest(fetch) as! [GameState] if state.isEmpty == true { //code to start a new game } else { cards = state[0].cardArray moves = Int(state[0].moves) topCards = state[0].topCards time = Int(state[0].time) fo
Apr ’16
Spinning Beachball when updating constraints
I'm trying to develope a view that has a lot of labels in a series of rows and columns resulting in a lot of constraints. Every time I try to up date the storyboard and resolve the constraints, I see the spinning beachball. Some time Xcode crashes, but it usually resolves. It takes a long time to resolve, but it does resolve. Anyone having a simular problem.
0
0
324
Apr ’16
Reply to I,have,a,problem,registering,my,phone,device.,I,have,two,already,registered,using,the,Identifier,number,but,i,am,trying,to,register,another,phone,and,its,asking,for,the,DID...where,as,the,previous,two,phones,it,asked,for,the,Identifier....the,Identifier,i
I think it has always been UDID, although they may show the word Identifier instead of UDID in some places. For example, when I go to the Certificates, IDs, and Profiles page for my account, then click one of the choices in the Devices category, the list shown has Identifier as the title of the second column, but the numbers are all UDIDs.
May ’16
Reply to problem with NSMutableArray
As Ken says, you should be adding [colonneR copy] (or mutableCopy if you need to modify it later) to ligneR to ensure that all the entries in ligneR refer to distinct array instances, not all pointing to the same column array repeated many times.But the array cannot magically become empty... I suspect the problem may be in the code that you have omitted in order to make it easier to read 🙂Do you have a property named ligneR? Is it that property that is 0 (whatever that means)? Again, as Ken pointed out, your code snippet is declaring a *local variable* named ligneR; all of that code would affect only the local variable, not the property, if that was your intention.
Topic: Programming Languages SubTopic: General Tags:
May ’16
iOS App Store - Wi-Fi download limit
Hi,I have run into a weird issue while submitting my app update on iTunes Connect:When I submitted my app I got an email that my ipa may be over the 100MB limit after it's released in the App Store.I went to look on the build properties under TestFlight -> iOS Builds ->Choose Build Number -> Build Details -> App Store File Sizes. It shows a list of all iPad devices and the App Store sizes.In all of those the ipa size is under 100MB, aside from a column that is called Universal, for which the ipa is over 100MB.Does anyone know what it means?My app is not Universal, it only supports iPads, so does it mean it's under the limit?Thanks
4
0
3.9k
May ’16