Тег ‘Xcode’:

Uninstall/Resetting Xcode

To reset Xcode to its factory settings for the logged-in user, run these commands in Terminal: > defaults delete com.apple.Xcode > rm -rf ~/Library/Application\ Support/Xcode At one point in the process he opted to remove the Xcode developer tools and start the configuration from the beginning. Which leads to the tip: should you ever find [...]

Теги: , ,

Комментарии отсутствуют

Local Notification Sample Code (OS 4.0 only)

Start a new Window-based Application Project called LocalPush Add an instance variable bgTask in LocalPushAppDelegate Download Sample + 2 books “iPhoneMemoryManagementFinalVersion” and “ES 2.0 Programming Guide” 1234@interface LocalPushAppDelegate : NSObject {     UIWindow *window;     UIBackgroundTaskIdentifier bgTask; } It will fire up a Local Notification to remind you one min before the event [...]

Теги: , , , ,

Комментариев (2)

Эксперемент

Написал простенькую программку ради эксперимента. С помощью программы можно ходит по корневому разделу системы, без Jailbreak. Если кто-то имеет опыт как создать фаил в директории не принадлежащей программе,  без взлома устройства, и поделится! Буду очень признателен! И собственно сам код

Теги: , , , , , ,

Комментарии отсутствуют

UML диаграммы в Xcode

На написание данного поста меня с подвигла недавняя задача! Мне нужно было для записки и слайдов дипломного проекта предоставить UML диаграммы. Сначала по гуглил и сразу попал на страницу одной софтины, которая называется MacTranslator, забегая на перед, т.к. многие могут просто не дочитать, НЕ РЕКОМЕНДУЮ ее покапать, хотя вряд ли ее кто и купит из [...]

Теги: , , , ,

Комментариев (2)

В свободное время

В свободное время решил поработать немного над созданием простого клиента для социальной сети “Вконтакте”. Хочу поделиться маленьким результатом. Это пока скромная версия, которая может вывести список, отправить сообщение, изменить статус и еще несколько мелочей… Я не руководился тем нужно это или нет, просто было интересно поработать с новым API от “Вконтакте”. Спасибо за внимания, если [...]

Теги: , , , , , , , , ,

Комментарий (1)

Tutorial: Drag and Drop file on NSImageView

Step by step for starter developers… 1. Create a project in xCode with name “DragAndDrop” or any else…2. Add an element “NSImageView” on main view in the MainMenu.xib

Теги: , , , , , , ,

Комментарии отсутствуют

Does a NSString contain a substring ?

Here is a little tip on how to tell if a string contains another string, using the underused data type NSRange. NSRange gives the starting location and the length of a given value, and is often used with arrays and strings. On this occasion we will use it to find the range of a substring [...]

Теги: , , , , , ,

Комментарий (1)

call controller methods from class

I created a class (Foo.m) which I would like to be able to call a method in the controller (MainViewController.m) which instantiated it. How do I do this? One way you can do this is to create a property in your Foo class that references its creator. You should not retain this reference to avoid [...]

Теги: , ,

Комментарии отсутствуют

Hello Music Player

Here is a bare bones hello world-style example that demonstrates library access and music playback. In a few minutes you can have a working, if minimal, music player. Lacking a user interface, this code queues up the entire iPod library and starts playing immediately on launch. Note: To follow these steps you’ll need a provisioned [...]

Теги: , , , ,

Комментариев (2)

Resize and Mask an Image

Make image with a mask! Source: 123456789101112131415161718192021222324252627282930313233343536373839404142- (UIImage*) maskImage:(UIImage *)image  {            CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();            UIImage *maskImage = [UIImage imageNamed:@"mask.png"];      CGImageRef maskImageRef = [maskImage CGImage];            // create a bitmap graphics context the size of the image     [...]

Теги: , , , , , , , ,

Комментариев (2)