I'm currently learning Swift for macOS and need to use NSNotificationCenter. In the documentation, it is said that I can use the class:
However, Xcode doesn't seems to recognize the class:
Is there some steps that's missing? Because, I get the impression that Foundation classes don't require import.
In swift 3 it has changed to NotificationCenter.
Edit: this is an example on how you can use it
I have no idea why it doesn't appear on your Xcode it can be a bug.
Related
I'm developing a Azure Function in VS 2019 with .NET Core and want to use Chilkat.CkString
I'm using ChilkatDnCore 9.5.0.87 Nuget package.
However CkString isn't available, CkDateTime and CkObject etc. are.
Is there a problem with the Nuget package/version or I am doing something wrong?
MikeW
I'm sorry for the confusion. I'll try to update the documentation somewhere..
The CkString and CkByteData classes won't be available in .NET Core (it's intentional).
You should instead use the Chilkat.StringBuilder and Chilkat.BinData classes.
The CkString and CkByteData classes were original classes created about 20 years ago, and don't fit well into the multi-language API design. They were created with C/C++ in mind. Obviously they'll remain present in the places where they currently exist, but for any new languages supported going forward, they won't be included. If there's something CkString provides that Chilkat.StringBuilder doesn't, then let me know..
I'm a Qt newbie. I'm trying to run tutorial from http://doc.qt.digia.com/3.3/tictac-example.html. However, I got error:
qptrvector.h: No such file or directory".
I have no idea what's going on. Anyone can give me a hint?
You are using a very old example which was written ~10 years ago. As the technology evolves, this is not up-to-date anymore, and you should not look at it even if you could manage to run it. It will confuse you more than help.
For instance, there is no QPtrVector anymore, but that is just one of those examples. Even if you take a look at a later example, you will find QtQuick1 (old and "done/obsolete") demonstration for the tictac example.
I think you wish to take a look at the examples from these years, e.g. QtQuickControls:
Qt Quick Controls Examples
or this one:
Task Menu Extension Example
We are building a game with sns features.
We are planning to use native framework(e.g. UIKit for iOS) for sns features.
With that in mind,
which one would be better?
http://www.cocos2d-x.org/ or http://code.google.com/p/cocos2d-android-1/
By which definition of "better" are we supposed to decide what is "better" for you?
I'm answering this question by saying that you should try out both, then go with the engine that you feel more productive with. Make the quickest prototype possible using the minimum features you require. In your case that might be displaying a native UI view inside a cocos2d OpenGL view.
For more information about what really matters when selecting an engines read my "game engine picker guide".
I think might be cocos2d-x. I did compare those two, basically, the android one is almost dead and there is no update any more. and the support and tutorials is pool.
But cocos2d-x will be difficult when you try to integrated with the SDK features as you need to go through jni. However, there are plenty of tutorials online to show you how to do that.
I have attempted cocos2d-x in windows environment using eclipse and eventually decided against it because it lacks debugging support and proper IDE integration, which is very good in Java/Android/eclipse/ADT. The only way I would recommend cocos2d-x is if you are developing for IOS and then porting to Android but I don't know about UIKit and SNS.
After years of no programming I am on my way to learn C++ on my Mac OSX. My eager goal is the creation of an algorithmic/automatic trading software for use with Interactive Brokers.
Now, I downloaded their API for Mac OSX and the docs. But I get the notion that the API for MacOSX is only for usage with Java?
I case I am wrong: I would be very happy if someone could help me with a few lines of C++ for usage on the IB-API, e. g. opening a session or loading marketdata for a security?
Btw, I did that with R and after having found some examples it was quite easy to use.
Thanks.
IB also provides the so called "Posix C++ API" which should work on MacOSX (It's stupidly included within the twsapi_unixmac_*.jar archive).
There is an autotools based project (twsapi) from this original IB code which builds fine on MacOSX, see
https://github.com/rudimeier/twsapi
A more exciting example of how to use twsapi in practice you may find in the twstools
project there:
https://github.com/rudimeier/twstools
Another wrapper directly around the C++ Posix version that compiles and runs on many platforms is TwsApiC++.
You can find it at https://github.com/JanBoonen/TwsApiCpp
It also includes some examples.
Hey!! I'm looking for python bindings for opensg 1.8.. I haven't been able to find it. I have read somethin about pyopengs. Is it still available? I am working on linux platform (ubuntu). If anyone could direct me to it I would be grateful.
The homepage and source code is on google code: pyOpenSG Project
As one of the creators of pyOpenSG, I can tell you that it is definitely still alive and kicking. We use it in production software all the time. It has become so stable for us though that we don't often update the code base. The python binding generator that we use (py++) just keeps everything working between revisions.