Questions tagged [nsdatepicker]

NSDatePicker is a subclass of NSControl that provides a user interface for displaying and editing an NSDate object.

NSDatePicker is a subclass of NSControl that provides a user interface for displaying and editing an NSDate object.

NSDatePicker uses an NSDatePickerCell to implement much of the control’s functionality. NSDatePicker provides cover methods for most of NSDatePickerCell methods, which invoke the corresponding cell method

90 questions
0
votes
1 answer

How to put countDownDuration time from my picker into an integer?

I found how I log the time picked: - (IBAction)save:(id)sender { NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"HH:mm"]; NSLog(@"%@", [formatter stringFromDate:[datePicker…
nick shmick
  • 905
  • 1
  • 9
  • 25
0
votes
1 answer

Convert a date to English format form Bengali

I have a date picker in my app. The phone is set to Bangladesh local settings. When I select a date from datepicker is always returns the date in Bengali. It return a date in local format. Like, it returns ০৬/১১/২০১৪ but I want it to be…
Rashad
  • 11,057
  • 4
  • 45
  • 73
0
votes
2 answers

Convert NSDate to NString issue

Hi I m pick the date from UIDatePicker and convert it in NSstring.. All the date working fine. Hi have set maximum date as 2001-12-31. When i choose this date the string return as "2002-12-31" dOBPicker = [[UIDatePicker…
Seeker
  • 644
  • 1
  • 8
  • 18
0
votes
1 answer

How to set hour/minute/second in NSDateComponents with a string?

I am having a small problem with NSDateComponents. What I have right now looks like this: [2014-8-08 08:00:00] because I'm using the current time initially (using [NSDate date]), and then setting the hours, minutes and seconds manually to something…
francojay
  • 450
  • 3
  • 15
0
votes
1 answer

Display time only from datepicker

I have a NSDatePicker and am trying to get only the hour...can this done? The web references to setting: datePicker.datePickerMode = UIDatePickerModeTime; but I don't see that option anywhere - it appears to be an iOS only feature. How can I do…
john cs
  • 2,220
  • 5
  • 32
  • 50
0
votes
1 answer

NSDatePicker Change Day with Stepper

I have an NSDatePicker with text and a stepper which shows month/day/year (normal American date format). Right now, when I click the stepper without having anything selected, it defaults to changing the month; however, in the context of the app I'm…
Matt Cooper
  • 2,042
  • 27
  • 43
0
votes
0 answers

Test if NSDatePicker is equal to the current time

I am trying to create code that tests wether the date selected in a UIDatePicker is equal to the current date. I am tying to get it to act as an alarm clock (user selects a time, they press a button, and an alert is displayed when that time is…
0
votes
1 answer

NSDatePicker... CoreData storing the date range?

In my app, I'm currently using two textual NSDatePicker objects to designate a start & end date, respectively. The individual value keys have a corresponding Date attribute in my Core Data store. Ideally, I'd like to go down to one graphical…
zzyzy
  • 973
  • 6
  • 21
0
votes
1 answer

NSDatePicker failing to refresh when setting date to current date

I have an NSDatePicker with an associated NSButton that changes the current date to "Today" when pressed. However: When the date is currently January 4th, 2014, and I use the built-in arrow buttons to switch to a different month without changing the…
Craig Otis
  • 31,257
  • 32
  • 136
  • 234
0
votes
1 answer

NSDate and UIWebView

I have a Date displayed in a UIlabel in my main view controller with a date picker that changes the date in the UILabel. I have UIWebViews that change based on the date. How do I pass the date displayed in the UILabel to the UIWebview? Thanks in…
Mina Dawoud
  • 408
  • 8
  • 22
0
votes
1 answer

How can the arrow keys be allowed to operate for graphical NSDatePicker?

This seems simple, but essential. Place an NSDatePicker (style: graphical) into a window, build & run, then attempt to use arrow keys to move around. The only response is a 'ding' from the computer. I've overridden -keydown in a simple custom…
David
  • 3,285
  • 1
  • 37
  • 54
0
votes
1 answer

NSDatePicker with date in yy to yyyy format

I have as NSDatePicker, where I enter 0023 and I expect it to change it to 2023. My logic is to convert the yy to yyyy based on +-50 years. But the default behavior of NSDatePicker changes it to 0023 etc. What I need to do to show in yyyy format…
Kaushik
  • 17
  • 3
0
votes
1 answer

Stepper behavior in an NSDatePicker messed up?

I have an NSDatePicker with text and stepper. The steppers show behavior that I find quite unintuitive. If my date picker is at the 26th of April and I select the day number, then click "up" a few times, the date picker cycles back to April 1st…
Carelinkz
  • 936
  • 8
  • 27
0
votes
1 answer

NSTableView tableView changing all rows when called

At the suggestion of another member, I've rewritten part of my recent project. I've now fixed the trouble I was having earlier, only to spend a few hours struggling with this one. Any/all help is much appreciated. When I try to add more than one…
ericdmann
  • 357
  • 5
  • 20
0
votes
1 answer

NSDatePicker Error

Ever time I try to make a string in xcode it won't work can someone point out what's wrong and help please NSString *date = self.DatePicker.date; This is the error "Incompatible pointer types initializing 'NSString * strong' with an…
user2141310