I have an NSPopUpButton's content bound to an Array Controller of "Meeting" entities and it's content value bound to the same array controller, but to the "date" model key path. Everything works fine. But I'd like to format the way the date is displayed with an NSDateFormatter and I can't get it to work. Any hints? Is it even possible?
How to use NSDateFormatter with NSPopUpButton
363 Views Asked by Johannes Fahrenkrug At
1
There are 1 best solutions below
Related Questions in COCOA
- How do I customize NSOutlineView to have border color?
- How to generate request format for WCF web service method for Mac and iPhone
- How to Handle Command Line Prompt from a Cocoa App
- Change views inside NSSplitViewController
- CMYK NSImage get pixel data
- Reactive Cocoa Conditional Split ?
- Set background color of NSImageView with proportionally sized image
- Use NSWindow or NSViewController?
- Imports and includes in header files - when is it okay?
- How to prevent the app from automatically open a window when launched?
- Swift NSViewController responds to mouseDown event, but not keyDown event
- "stringByAddingPercentEncodingWithAllowedCharacters" replaces more characters than it should
- cocoa - what happen when close a window (by pressing the red X button)?
- Does it necessary to go back to main thread to update UI?
- WebView not responding to Keyboard input
Related Questions in NSDATEFORMATTER
- Swift code with multiple NSDateFormatter - optimization
- Obj-c code to Swift - NSDateFormatter
- Converting string to date with NSDateFormatter
- Combining time and date in ISO8601 format string using Swift
- DateFormatter for format 'Fri, 19 Jun 2015 20:05:23 GMT'
- need to convert UTC time to current timezone of device
- parsing the date and getting the day off by 1, nsdate
- NSDate returning nil in iOS
- NSDateFormatter doing wrong
- iOS Dateformatter Timezone
- SWIFT : Convert String from XLM to NSDate
- ios8 Timezone parsing changed?
- NSDateFormatter incorrect date conversion
- NSString to NSDate doesn't work
- How to parse a string to date using dateformatter in objective c
Related Questions in NSPOPUPBUTTONCELL
- MacOS views rendering same font differently
- Delaying the opening of a NSPopUpButton
- NSPopUpButtonCell with hierarchical menu in NSTableView
- How to retrieve the current selection of an NSPopUpButtonCell?
- NSPopUpButton with InlineButton style logs "Unknown bezel style 15 and/or control size 1"
- Custom NSPopupButtonCell in NSTableView
- NSPopupButton, updates depending on another NSPopupButton
- Filtering entries from a Core Data entity that appear in an NSPopUpButton list
- Programmatically instantiating a NSPopUpButtonCell in Cocoa OSX
- How to use NSDateFormatter with NSPopUpButton
- NSPopUpButtonCell indexOfSelectedItem always returns 0
- Getting duplicate header button cell in NSTableView when using NSPopUpButtonCell
- Proper way to populate NSPopUpButtonCell using NSTableViewDataSource
- Using NSPopUpButtonCell with NSTableView
- NSPopUpButton revert to initial state
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
OK, some guys on Twitter suggested adding a formattedDate method to my model. I knew from the get go that I could do that but was hoping that there's some IB-only solution. I don't think there is, so to answer my own question: NSDateFormatter doesn't (seem to) work with NSPopUpButton.
My formattedDate method looks like this: