Use CFRunLoopRun to synchronize NSMetadataQuery

simple

May 12, 2008

Cocoa

No Comment

– (NSArray *)completionsForPartialWordRange: (NSRange)charRange indexOfSelectedItem: (int *)index { // get the current word. That will be the keyword in our query NSString *word = [[self string] substringWithRange: charRange]; // construct the query string from this word: NSString *queryString = @”someQueryString”; // construct the objects needed to perform the query NSMetadataQuery *query = [[NSMetadataQuery alloc] init]; […]

Read More

Cocoa: Secure License Framework for Kagi

simple

January 9, 2008

Cocoa

No Comment

http://www.aquaticmac.com/

Read More

Terminal: Dealing with Immutable Files and Folders

If you have followed all the advice in the Knowledge Base articles “Mac OS X: About Trash, Deleting Locked Files – Article ID:106272” and “Mac OS X: Troubleshooting Permissions Issues” and are still unable to empty the Trash, or move an item to the Trash, you may have an immutable flag set on one of […]

Read More

Terminal: Secure Terminal.app

Some month ago I added a post to heise.de, how to secure the Mac OS X terminal.app. Now I found it mentioned on macosxhints.com – wao how amazing the internet is 😉 http://www.macosxhints.com/article.php?story=20060222011953661

Read More

Plot Frameworks

simple

September 8, 2007

Cocoa

No Comment

After looking for some niceplot frameworks for Cocoa, I found this three starting points:http://developer.snowmintcs.com/frameworks/sm2dgraphview/index.htmlhttp://sourceforge.net/project/showfiles.php?group_id=79925http://www.vtk.org/ technorati tags:plot, framework, cocoa

Read More

Old Code for copying (backup and restore)

simple

February 8, 2007

Cocoa

No Comment

BACKUP [crayon-5c122195000e5945114230/] RESTORE [crayon-5c122195000ed971151837/] technorati tags:cocoa, NSFileManager

Read More

Found some nice Cocoa Frameworks

simple

December 21, 2006

Cocoa

No Comment

NetClasses -> http://netclasses.aeruder.net/ Chart -> http://www.nachob.tk/ Narrative plotting -> http://sourceforge.net/projects/narrative/ MathKit -> http://sourceforge.net/projects/mathkit Blocks (plugins)-> http://www.hogbaysoftware.com/project/blocks GraphX -> http://blog.oofn.net/projects/graphx I found them on http://osx.hyperjeff.net/Apps/apps.php?p=7&f=frameworks

Read More

Simple Use of NSTimers in Cocoa

simple

September 3, 2006

Cocoa

No Comment

[cocoa] #pragma mark Timer for the progress indicator and status updates – (void)destroyDelayTimer { [mDelayTimer invalidate]; [mDelayTimer release]; mDelayTimer = nil; } – (void)fireUploadTimer:(NSTimer*)timer { totalTransferTime += timerUpdateTime; // workaround for longlong to float conversion problem float transferSpeed = [[[NSString alloc] initWithFormat:@”%d”, [con transferSpeed]] floatValue]; if ([con numberOfTransfers] < 1) { [self destroyDelayTimer]; [self BroadcastToObjects:[NSDictionary […]

Read More

Working with GCJ and GTK

If you are trying to use AWT and SWING under GCJ you should compile it with gtk. ../gcc-4.0.2/configure –prefix=/opt/gcj  –disable-static –disable-checking –without-libbanshee –disable-libmudflap –enable-languages=c,c++,java –enable-java-awt=gtk

Read More

MySQL Problems

* MYSQL WON’T START OR STOP?: ============================= You may never ever delete the special mysql user “debian-sys-maint”. This user together with the credentials in /etc/mysql/debian.cnf are used by the init scripts to stop the server as they would require knowledge of the mysql root users password else. So in most of the times you can […]

Read More