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

Notification for Datepicker cell

I have to populate the nstableview with values from data base based on the date and time which i select from the date picker. When i select a date and time from the 'To date' date picker, the table has to be populated with values. For this i have…
user1999892
  • 135
  • 1
  • 8
0
votes
0 answers

How to get the right date format?

In cocoa, I have given a textual NSDatePicker and a disclosure (for displaying graphical date and time pop over) in GUI. When i select a date and time, in text field i'm getting the correct date and time in the format(dd/MMM/yyyy HH:mm). But when I…
user1999892
  • 135
  • 1
  • 8
0
votes
1 answer

Objective C/Xcode/AppleScript: Getting a date value/string from NSDatePicker in AppleScript

I have an NSDatePicker object (hours, minutes, and seconds only) in my Mac App. I have everything linked up, my only question is what is the AppleScript syntax to retrieve a date/string from a NSDatePicker object? I would like to then use the…
Skyler
  • 2,834
  • 5
  • 22
  • 34
0
votes
3 answers

NSDatePicker graphical representation in popover when changing date

Is it possible for NSDatePicker natively enable functionality to show graphical implementation in popover when changing date? Such functionality now exists in OS X Calendar and Reminders. Or I need to implement such functionality by myself? If so,…
Vadim
  • 167
  • 1
  • 12
0
votes
1 answer

uidatepicker [__NSDate date]: unrecognized selector sent to instance

I am using uidatepicker and throwing exception when I try to get the date from date picker. .h file: #import @protocol TimeDelegate - (void)returnTime:(NSDate *)item; @end @interface TimeController : UIViewController…
0
votes
2 answers

Compare two strings like date

Need to compare two variables of type NSDate.    One is the current date and the other is user selected date. The user selects the date : UIDatePicker *datePicker; // declared in h file -(void)dateChange:(id)sender{ NSDateFormatter *df =…
Tyrone Prude
  • 362
  • 7
  • 19
0
votes
1 answer

Xcode showing current date on the Datepicker while creating a map app

I'm new to Xcode and I'm creating a rather simple Mac App with Xcode that has a DatePicker which will save the selection to a Coredata model. While in Interface Builder, under that DatePicker's attributes, I can set a minimum date, maximum date and…
0
votes
2 answers

Enable/disable datepicker with checkbox

I am trying to enable and disable a datepicker with a checkbox, but I can not. What's wrong? if ([checkBox state]==NSOnState) { [datePicker isEnabled]; }
Andrea
  • 427
  • 3
  • 16
-1
votes
1 answer

Can't take focus off NSTextField and select other NSTextFields

I am having a bit of a problem with the UI/data entry part of my macOS application. In my application I have 6 NSTextFields, 1 NSDatePicker and 1 NSPopupButton. After typing in one NSTextField (specifically the one assigned to an outlet called…
-1
votes
1 answer

Comparing dates in loop, then adding interval?

I've been really stuck on this one for a while. The user will set a custom alarm interval and then pick a date on the picker, and the app is set to display the next alarm. If they set it in the past, I want the app to add the interval by looping…
McCadi
  • 229
  • 1
  • 2
  • 9
-1
votes
1 answer

Add sound to play at time from NSDatePicker

I'm creating a project which requires the user to be able to set a sound to play at a specific time and I'm currently doing that with local notification. I would like to change that to use AVAudioPlayer, and I was wondering, what would be the best…
crazy_tiger_corp
  • 271
  • 3
  • 22
-1
votes
1 answer

Objective-C -> Can't access NSDatePicker if superclass method is called from subclass

I have a class HelloWorldViewController that has the following -(void) addDate method NSDate *myDate = [myDatePIcker dateValue]; NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"YYYYMMdd"]; …
ericdmann
  • 357
  • 5
  • 20
-2
votes
1 answer

Take date information from ipad

We need to take the actual date from the IPad and save it in a variable. We have searched NSDateComponents and NSDate, but we havent found anything. For example if today is 25 of october, we would like to have a int with the value of 25 and another…
iopy
  • 5
  • 1
  • 4
-4
votes
2 answers

How to get audio to play at time from NSDatePicker?

I'm making an app which requires a sound to play at a time in the future set by the user using NSDatePicker how would I do so? I already have the AVAudioPlayer setup, I just need the help with the playing itself. And please write how to do so that…
crazy_tiger_corp
  • 271
  • 3
  • 22
-6
votes
1 answer

ERROR SHOWING in program code ios

-(void)textFieldDidBeginEditing:(UITextField *)textField { [textField resignFirstResponder]; picker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 290, 320, 216)]; [picker setDatePickerMode:UIDatePickerModeDate]; …
Sampri
  • 1
1 2 3 4 5
6