English 中文(简体)
Mac 的构建提醒时钟程序
原标题:Build Alarm Clock app for Mac
  • 时间:2012-05-23 03:18:08
  •  标签:
  • c++
  • macos

我在想,是否有人能正确指示我 如何为 OS X 撰写提醒时钟程序。 我曾经寻找过教程, 但似乎找不到任何类似 OS X 的近距离类似的东西。 我现在有应用程序, 但是它们看起来并不正确或工作正确, 所以我想我应该做一个, 因为我一直想学习 C++ 。

最佳回答

无法为代码质量提供担保,但需要搜索一下,我在Github < a href="https://github.com/dev2dev/Alarm-Clock" rel=“nofollow”>https://github.com/dev2dev/Alarm-Clock 上找到了这个项目。

注: Mac 编程在 Obj-C 中完成, 当您可以写 C 时, 通常不需要。 这里有几个链接, 讨论 obj- c 和 c++ 。

这个问题还有很多,但应该给你们一些起点。

问题回答

如果您可以使用shash 而不是 C+++, 这里是一个脚本, 您使用脚本作为

wake 100 现在唤醒 & amp;

,并在给定秒数后显示消息。

#!/bin/sh

sleep $1
shift

osascript <<EOF
tell application "Finder"
    activate
    beep
    display alert "$*"
end tell

return
EOF




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签