one of my OS X apps deals with various dates. The user has to enter dates at many different places and most of the dates are not around the current date but somewhere in the past.
NSDatePicker (in graphical mode) offers a very limited UI: It is not possible to jump to a specific year or month for example. The arrow controls to switch between months are quite small and hard to click...
Bottom line is: Does anyone know a good graphical alternative to NSDatePicker? While there seem to bee hundreds of UIDatePicker alternatives with various different styles and settings I could not find any solution for NSDatePicker
Thanks!
This is an old question but I have encountered the same problem and that's why I answer your question.
It is very surprising, but, on a lot of points, I think that OSX's GUI is very limited unlike iOS.
I'm afraid that you have to create a component yourself from scratch.
An other solution is to use this open-source component : MLCalendarView (Calendar-OSX) available on cocoacontrols.com.
Yes, NSDatePicker hasn't had much love for a while.
If you want a better looking date picker for OS X, NMDatePicker is an MIT-licensed date picker implemented in Swift and as of late 2015, it has been receiving attention.
Note that it doesn't have the month or year selection that you have referred too - but feel free to make a commit!.
Might I suggest trying NSDatePicker in non-graphical mode? It's not as nice looking, but you can directly enter numerical quantities for any of the components, and it will not allow entry of illegitimate quantities (e.g., Mar 32 or Jun 31).
Related
I am looking for a way to highlight a range of dates between a given start date and end date using a TCalendar in a Delphi 10.3 FMX application. It is for visual purposes as the client selects a start and end date in seperate TDateEdit components.
I have looked it up, but I can't seem to find anything that explains what I want to achieve. Does the TCalendar perhaps have a method that achieves this, or is there a possible work-around?
I hope that my question was clear.
Thank you in advance!
The TCalendar is a component that is setup with a model class, a component class, and a style class. There are multiple controls that work this way. I can write a lenghty answer about how all of this works, but when I first started exploring FMX I had to dig in this for myself and found een article by Yaroslavin Brovin about the topic. It's in Russian (some of it translated in not that well written English) so you have to use a translator if you aren't familiar with the language (such as me :)). Here is then website
Just thinking out loud here: What you can do is add a begin/end date prop to the model class en make your own derived style class where you can give the days you want to highlight your own preferred style through painting directly, or through styling via StyleBook.
I'm working with Xamarin Forms and Syncfusion Calendar (not Scheduler).
I got the calendar to work including week view. But, I cannot find a way to make it pretty.
I wanted to be like this.
But in Syncfusion, the spaces between the the days (Sunday, monday, etc) and the numbers (7,8,9 etc) is too far apart. It's like 1 to 2 rows apart.
Please help.
Thank you
I found out the answer.
its a simple, wrap it in a grid.
We would like to inform you that as per implementation of SfCalendar, the space between the days in calendar is not reduced or changed.
A few years ago I read an article about a neat way to analyze a large code-base.
The idea was to zoom out so far that patterns of indentation and block length are all that is really visible.
The author wrote about printing out code with very small fonts and looking at the results from 10 feet back. I believe the author also had some tools for reformatting code and producing images for this technique, in such a way that paper could be avoided.
I can't find the right search query to bring this up. Anyone have any ideas?
The text editor Sublime Text has a zoomed-out overview of your code on the left of the window, and can be used to scroll.
I've done this myself, that is print to paper with very small fonts and step back. If you want to avoid the paper route then perhaps you can print to PDF?
Or use and editor that can zoom in and out by changing font size. I use SciTE and Komodo Edit, both based on the Scintilla code editing engine and both allow me to hold down the ctrl key and use the mousewheel to change font size (just like web browsers).
With a bit of Google-fu I found references that this (ctrl+mousewheel) may also be implemented in Visual Studio and XCode. Can anyone confirm?
I think you are referring to Software Visualization? If you search for Code Visualizer, you maybe able to find a few products out there that does it but there are more focusing on aggregating the measurements information/metrics together for software comprehension and not necessary as a way to view or navigating to code only.
Some of the tools include Code city, code crawler or code visualizer. Michele Lanza and his team did some great work in this area in the recent years, however some only has support for certain language/platform so be mindful if they are going to be useful for you.
http://www.inf.usi.ch/faculty/lanza/
http://www.inf.usi.ch/phd/wettel/codecity.html
Could extract all the types, classes, etcetera, and put them into a tool such as graphviz and generate a graph.
I realize this is not strictly programming related, but hopefully you will let me get away with it.
My group is trying to put together a very short (2 minutes or so) "film" about a new feature to our product. The feature is trying to solve a particular problem a lot of our customers have. We do not want to go with live action for displaying the description of the problem we are trying to solve because we feel that the production value of anything we could come up with would be incredibly low and turn off our viewers. So we would like to make an animation (basically floating clip-art that is animated moving from place to place) while we have someone narrate the problem description.
While flash seems to be a good solution I have some problems with it:
I need to capture this in a movie format like avi
It needs to be captured in 1080p, 720p and regular TV def.
Does anyone have a suggestion for a piece of software that can get me where I need to go?
Free is good, but I think I could get my boss to lay down some scratch for this.
Thanks!
For just some basic here-is-the-screen-this-is-a-slide kinda thing you could use Windows MovieMaker, free and standard.
And here you have some tips on how to create your own screen-captured-AVI file for input.
I have been trying to create a chat bubble for about a month now... (you know, like the one in iChat or Tweetie). At some point I found a thread that said that I could use Twitterfon's source... which I did. But I get stuck for a few reasons. Which ones? Apple didn't seem to implement all the methods needed for calculating the rect's size. E.g.: NSTextField doesn't implement a method that allows me to give an NSRect in order for it to calculate the best size. The fact is, Tweetie's bubble rects are always perfect. I dropped him a line asking how he did that, but I didn't get a reply. Although, I understand, because it is used in a commercial application. I thought that with the popularity of iPhone's SMS application (and iChat, or any app including chat bubbles), someone would probably made an implementation on OS X, and made it open source. I am not very experienced, and mainly I don't have time (school), so this is why I have been working on it for one month and have not found a solution.
If someone created the thing on Cocoa, would they please explain their solution for it ? Or even better, show some code...
The AppKit NSString Additions have methods to measure strings for drawing, and for more advanced purposes you can use NSLayoutManager. See the Text Layout Programming Guide for more info.
Alternatively you could use WebKit and HTML/CSS. I believe this is how Adium achieve their IM message themes.
Check out the BubbleThingie sample code for example of how to do the image masking. It also has example of how to do the text bubbles using a UIButton or UILabel and does all the size calculations. it also allows to tint the bubbles any color.