Example for Otrkit example in Xcode ios - objective-c

I wanna encryption using OTR, so i use the module from github
https://github.com/ChatSecure/OTRKit
i followed that read me file but i cant able to done the encryption,
is any one use the module "OTRKit" from github,
produce simple example for using OTRKit in xcode like encrypt a message "Hello" and Decryot that,(shows text in alert box is enough).
i hope will some one help me,
Thank u...

Related

Xcode / AppleScript / Objective-C (AppDelegate.applescript)

I am having a lot of issues following this video tutorial. I'm getting hung up on the AppDelegate.applescript file. AppleScript Facelift
Here are the steps I'm taking:
1. Create a new project
2. Then I choose "App"
3.1 Options for interface
3.2 Options for Language
Save to file location - can't attach an image due to limit
5. "Template" files created
6. I can add frameworks and libraries (not sure if this is necessary? im doing things blindly...)
7. Then these are the AppDelegate files. (note- I can change the identity and type in the top right fields. if I select AppleScript Uncompiled Source, it does not change the extension)
I've tried creating a new "blank file" and saving it as AppDelegate.applescript, but I don't think this is working. Can someone point me in the right direction???
I've been working on an AppleScript project which works with my Apple Music. Someone mentioned I should look into Objective-C AppleScript, but this is making no sense. I think my end goal is having a window that allows more flexibility with input...
Thanks in advance!
The answer: I was taking a very dated approach to this and asking the wrong question.#has's suggestion to look at his project Swift-AppleScriptObjC is exactly what I needed.

How can I create a gedit plugin using python?

I wanted to create a simple gedit plugin that could save the current file when mouse leaves the text area (just like the <<leave>> event in tkinter) using python3. I went through wiki but I couldn't get much from it (All I could do was to create a plugin that just showed in plugins menu,nothing more). Can anyone help me with this?
According to the Python plugin HOWTO:
The gedit window based on Gtk.Window.
Looking at the documentation for Gtk.Window, it inherits from Gtk.Widget.
Looking at the signals documentation for Gtk.Widget, it looks like leave-notify-event is what you are looking for.

Titanium: Notification with download status

I want to create a notification that will include a download status, such as the photo below (marked in yellow:
Is there a special way of doing these? A code sample would be nice...
There indeed is a special way of doing it. Usually these kind of features require a module to be included. This can easily be done by using Gitt.io.
The module in question is nc.progressnotification
You can find the module on Github, or through Gitt.io.
An example is added to the app.js file in the example folder

Quick Help for user defined function in ios

How to show Quick Help for the methods which we wrote ...?
Like for inbuilt function when we right click on it & Click Quick Help then we get all info about that method like that I want to do for user defined methods so that any one come to know that method takes which parameter and each parameter for which purpose?
For more explanation, see these two images:
Here is a solution for that. Also check apple documentation. You might have to create document set and install it in Xcode.
Edit: Here is another similar post, How do you populate the Xcode 4 "Option+Click" popover?
There is an open source tool called appledoc which helps with this. You can provide your own documentation in the header files and then run the appledoc script which will (depending on your settings) generate the docsets, install them into Xcode, create a HTML for the documentation as well as rss feeds so that changes to the documentation can be published.

Xcode falsely states "Cloud.h" doesn't exist

I'm creating an app that uses CloudApp. I am using "TestHarness" in order to see what to expect when I import it into my app. The problem is, Xcode is continuously saying "'Cloud.h' file not found", when, in fact, it is in the directory. To see what I'm talking about, click here.
I've tried to find anything similar to my question and have either found nothing or it may or may not even be remotely close to what I'm asking for and it was for a lower version of Xcode (I'm using Xcode 4.2, as you can see in the picture).
I'll appreciate any help that I can get. Thanks in advance.
You need to use:
#import "Cloud/Cloud.h"
you need to add the path to the CloudApp header file in the application:
select the target,
go to 'Build Settings',
'Header Search Paths'
(might need to check 'Recursive path').