New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Calendar interface for cocoa app


Post Reply New Thread Subscribe

 
Thread Tools
dede94

 
Member Since: May 13, 2012
Posts: 9
dede94 is on a distinguished road

dede94 is offline
Hi there,

I'm trying to make an organizer app as a school project, and since it is a school project I don't have a lot of time to read all of Apple's documentation, so in order to learn Cocoa and Objective-C I'm just watching tutorials online.

Anyway back to the point. I need to have a Calendar interface in my app, something like iCal, or maybe even iCal built into my app, I have looked at CalendarStore from Apple but it doesn't look like it will do what I need.

Just to specify exactly what I need:
-iCal like gui, for the calendar.
-Ability to create calendars, events, and modify them.
-Needs to comply with Apple's guidelines, for design and everything else, because I may want to put this on the app store if I have a good app in the end.


I wouldn't mind having to create the whole interface myself, but I would prefer to have some API that I can just plug into my app, because that would save me a lot of time. If there is no such API, I would be very grateful if someone could point me on the right direction of where to start to get the design working. I've been searching on Google for days on this but not much luck.

Thanks in Advance
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,656
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
I'm not ObjC pro but I just took a quick look at the CalendarStore documentation and it sounds perfect for what you need especially if you don't mind designing a UI. What is it about CS that you don't like?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
dede94

 
Member Since: May 13, 2012
Posts: 9
dede94 is on a distinguished road

dede94 is offline
Thanks for the quick reply.
CS looked like the best option for me, the only problem was that it didn't have the UI, and I've got no idea, where to even start looking for how to build a UI for a calendar.

I thought about creating the interface on OpenGL but I'm not too sure if it is the best option for designing an UI for a calendar.

If you've got any idea of where to start with creating the interface for it, I would truly appreciate it.

Thanks
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,656
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Cocoa doesn't have a built in calendar object so you'll either have to roll your own or use a third party solution such as this one.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
dede94

 
Member Since: May 13, 2012
Posts: 9
dede94 is on a distinguished road

dede94 is offline
I'm downloading CSWeekView at the moment, it looks like it is a good solution for me.

Just one question about it, since it is registered under GPL, would Apple accept it in the app store? if I were to put the app there in the future.

Thanks
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,656
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Hmm, good question. I read this comment on an OSNews article recently that would suggest that you can't. However, I don't know for sure.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
Mark FX

 
Mark FX's Avatar
 
Member Since: Aug 13, 2011
Location: West Sussex, UK
Posts: 167
Mark FX has a spectacular aura about

Mark FX is offline
Producing an app like iCal is no small undertaking, It does not matter which programming language, or development tool you use, you will have to design your own GUI for your app.
The CalendarStore Framework is exactly the right cocoa framework for the job, but there's no way to avoid using Interface Builder for designing your interface, and wiring the UI elements to your apps logic code.

You can search the interweb for a custom control class that might display a calendar type display in a window, but you will still need other interface and menu elements for a complete application design.

Good luck with it.

Regards Mark.
QUOTE Thanks
dede94

 
Member Since: May 13, 2012
Posts: 9
dede94 is on a distinguished road

dede94 is offline
Thanks for the replies,

I have had a look at the code for CSWeekView although it is not exactly what I needed, by looking at the code I saw, what I needed to get started with, I'm working on it, and hopefully I wont need to use CSWeekView that way I don't run into any problems with the GPL and Apple's guidelines.

Mark FX, I did realize I would have to do all the design, I just thought the UI of the actual calendar part (week view, day view, month view) would reduce my workload, but after seeing the code for CSWeekView I noticed that it isn't as hard as I though it would be. Thanks for your input anyway.

Thanks,

PS: For anyone reading this post later, what I saw on CSWeekView that got me started was NSRect, NSPoint, NSSize, and all the other related ones.
QUOTE Thanks

Post Reply New Thread Subscribe


« g++ fstream in Mac OS X 10.6 | QT installation problems »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
ical problem - double-click event is for wrong calendar MacForMore OS X - Apps and Games 1 02-26-2012 08:41 AM
iCAL not syncing with Google Calendar! qposner OS X - Apps and Games 3 10-21-2011 01:48 PM
Facebook iPhone app contains buried iPad app OneMoreThing... Apple Rumors and Reports 0 07-25-2011 10:54 AM
Download the ten billionth app and you could win a US $10,000 iTunes Gift Card. the8thark Apple Rumors and Reports 36 01-22-2011 08:02 PM
Air Video = Amazing app eliehass iOS and Apps 3 04-16-2010 05:17 AM

All times are GMT -4. The time now is 10:24 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?