Re: Saving IKImageBrowser Order and Content?

2009-02-12 Thread Chunk 1978
doing (for data-sourcing) and what you have tried before you > asked your question. > > regards, > > douglas > > On Feb 12, 2009, at 10:01 AM, Chunk 1978 wrote: > >> topic says it all. i have installed an IKImageBrowser which allows me >> to drop images and reorder

Matching String With ObjectForKey?

2009-02-12 Thread Chunk 1978
how can i equate an NSString to an ObjectForKey (which is also an NSString)? kinda driving me crazy. -=-=-=- NSString *desktopPlist = [@"~/Library/Preferences/com.apple.desktop.plist" stringByExpandingTildeInPath]; NSString *originalDesktopBackgroundImage = NSDictionary dictio

Re: Matching String With ObjectForKey?

2009-02-12 Thread Chunk 1978
ahh... that old trap again ;)... thanks guys On Fri, Feb 13, 2009 at 1:56 AM, John C. Randolph wrote: > > On Feb 12, 2009, at 10:45 PM, Chunk 1978 wrote: > >>if ([defaults objectForKey:@"OriginalBackground"] == pathy) > > .. > >> but they are th

isNotEqualToString

2009-02-13 Thread Chunk 1978
i'm trying to minimize my if statement. i have the following which works: -=-=-=- if (([currentDesktopBackgroundImage isEqualToString:firstPath]) || ([currentDesktopBackgroundImage isEqualToString:secondPath])) { //Go North }

Programatically Uncheck "Change Picture" In Desktop Settings?

2009-02-13 Thread Chunk 1978
is this possible? it seems that programatically changing com.apple.desktop.plist (Background > Default > Change) from TimeInterval to Never will not override the settings in System Preferences. i though applescript could be an option but it seems that using an applescript to accomplish this would

Re: Programatically Uncheck "Change Picture" In Desktop Settings?

2009-02-13 Thread Chunk 1978
plist) before setting the new desktop background. On Fri, Feb 13, 2009 at 4:37 PM, Nick Zitzmann wrote: > > On Feb 13, 2009, at 2:30 PM, Chunk 1978 wrote: > >> is this possible? it seems that programatically changing >> com.apple.desktop.plist (Background > Default > Cha

Images In Dock Menu?

2009-02-13 Thread Chunk 1978
i have a NSMenu that i use as both a right-click menu and the dock menu. The images i use for some of the menu items will appear in the right-click menu, but they do not show up in the dock menu. i've connected the the File's Owner dockMenu to the NSMenu in IB so to add the menu to the app's dock

Re: Programatically Uncheck "Change Picture" In Desktop Settings?

2009-02-13 Thread Chunk 1978
of tab group 1 of window "Desktop & Screen Saver" is 1 then click checkbox "Change picture:" of group 1 of tab group 1 of window "Desktop & Screen Saver" end if end tell end tell -=-=-=- On Fri, Feb 13, 2009 at 5:34 PM

Re: Programatically Uncheck "Change Picture" In Desktop Settings?

2009-02-13 Thread Chunk 1978
thanks a million ken!... this helps me on so many levels :) On Fri, Feb 13, 2009 at 9:02 PM, Ken Thomases wrote: > On Feb 13, 2009, at 6:25 PM, Chunk 1978 wrote: > >> when running my apple script i get this error: >> >> -=-=-=- >> System Events got an error: A

Re: Tool Tips for Inactive window...

2009-02-20 Thread Chunk 1978
were you setting your tooltips in IB? were they removed after you subclassed your panel? maybe try setting your tooltips programatically? like: [myButton setToolTip:@"button tooltip"]; On Fri, Feb 20, 2009 at 8:19 AM, rajesh wrote: > Forgot to mention this, > Panel has set of buttons , these

Save Images Imported/Dropped To IKImageBrowser

2008-10-30 Thread Chunk 1978
i've been using Apple's ImageBrowser sample code to further understand the image browser: http://developer.apple.com/samplecode/ImageBrowser/listing2.html i'm trying to make the image browser save the images that it displays by copying any dragged image into it's own folder, and have the image bro

Programatically Change NSMenu Title

2008-11-04 Thread Chunk 1978
for localization purposes, i'd like to programatically change all of my app's menu item titles. #import -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- @interface AppController : NSObject { //Main Menu Outlets IBOutlet id MenuItem1; IBOutlet id MenuItem2; } @

Re: Programatically Change NSMenu Title

2008-11-04 Thread Chunk 1978
, and it works fine, i'm just wondering why it doesn't seem possible to also programatically change the NSMenu titles, since it's possible to change the NSMenuItem titles... On Tue, Nov 4, 2008 at 3:18 PM, Christopher Hickman <[EMAIL PROTECTED]> wrote: > On Tuesday, November

Re: Programatically Change NSMenu Title

2008-11-04 Thread Chunk 1978
excellent! this works well, since i don't use the nibtool... i should probably use the nibtool for my next app :) thanks for all the replies On Tue, Nov 4, 2008 at 4:55 PM, Peter Ammon <[EMAIL PROTECTED]> wrote: > > On Nov 4, 2008, at 12:02 PM, Chunk 1978 wrote: > > fo

how to set datasource as image files in specific folder, and load datasource on launch?

2008-11-05 Thread Chunk 1978
i'm trying to figure out how to set the image browser to a specific directory of images and load those images with [update datasource] in the awakeFromNib method... currently, only drag and drop is possible, and the datasource is set to the dropped object's path, but i'd like to save all images dro

Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-05 Thread Chunk 1978
hi. i've been on this task for almost a week, and i still can't get it right. basically, i would like to have an NSMenu populated with all the files and folders of a specific directory. for this example i'll use ~/Documents. the code below only partially works. it will list files and folders f

Re: Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-06 Thread Chunk 1978
sharedWorkspace] openFile:filePath]; } - (void)dealloc { [super dealloc]; } -=-=-=-=- On Fri, Dec 5, 2008 at 3:07 PM, Ashley Clark <[EMAIL PROTECTED]> wrote: > On Dec 5, 2008, at 9:44 AM, Chunk 1978 wrote: > >> hi. > > Hi. >

Re: Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-07 Thread Chunk 1978
heMenu insertItem:desktopItem atIndex:1]; [desktopMenu release]; [desktopItem release]; } - (void)launchFileOrFolder:(id)sender { NSString *filePath = [sender representedObject]; [[NSWorkspace sharedWorkspace] openFile:filePath]; }

Re: How to disable the transparency in dropdown sheets?

2008-12-07 Thread Chunk 1978
it's also possible to simply fill your window (that is your sheet) with a colored view with alpha:1.0... On Sun, Dec 7, 2008 at 12:21 PM, Mike Abdullah <[EMAIL PROTECTED]> wrote: > Why do you want to do this? Why do you want your app to be different to all > others on the system? That said, NSWind

Re: interact with users in a background app

2008-12-07 Thread Chunk 1978
[NSApp activateIgnoringOtherApps:YES]; On Mon, Dec 8, 2008 at 2:14 AM, BirdSong <[EMAIL PROTECTED]> wrote: > > Hi all,I want to add a window to a background application in order to > interact with users sometimes. However, I found the window I added is not a > keywindow or so because I can not t

How Can I Notify DrawRect Method?

2008-12-09 Thread Chunk 1978
i'm assuming this is simple, but i can't solve the problem. at launch of the application, an NSRect is drawn with a userdefault color: -=-=-=-=- - (void)drawRect:(NSRect)rect { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSData *colorAsData; co

Text Not Anti-Aliased In NSView

2008-12-09 Thread Chunk 1978
i have several views that are added and replaced by a main window using core animation... i've noticed that the text (label objects, checkbox text, etc.) in each view is not being anti-aliased. this link ( http://att.macrumors.com/attachment.php?attachmentid=147663&d=1228770137 ) will show you an

Re: How Can I Notify DrawRect Method?

2008-12-09 Thread Chunk 1978
i hadn't tried setNeedsDisplay:YES... but this works... and now i know what setNeedsDisplay means, which is exciting :) thanks everyone. On Tue, Dec 9, 2008 at 11:27 AM, rajesh <[EMAIL PROTECTED]> wrote: > > On Dec 9, 2008, at 5:17 PM, Chunk 1978 wrote: > >> i'm

Fwd: Text Not Anti-Aliased In NSView

2008-12-09 Thread Chunk 1978
-- Forwarded message -- From: Chunk 1978 <[EMAIL PROTECTED]> Date: Tue, Dec 9, 2008 at 12:34 PM Subject: Re: Text Not Anti-Aliased In NSView To: Nick Zitzmann <[EMAIL PROTECTED]> i studied apple's "Basic Cocoa Animations" example found here: http://dev

Return Control To Next Active App Without Hiding?

2008-12-10 Thread Chunk 1978
the closest thing i've come to being able to bring front the most recent app is using this: [NSApp hide:self]; [NSApp unhideWithoutActivation]; but that flashes my app, and kinda looks like a glitch... is there any standard method i can use to make this happen instead? ___

Depressed, Etched Style For Toolbar?

2008-12-10 Thread Chunk 1978
when validating a toolbar item, how do i call this style? (see image attached) <>___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)li

Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2008-12-10 Thread Chunk 1978
i believe i painted myself into a corner here... i have a NSPopUpButton with 3 items. 1 Hour, 2 Hours, 3 Hours. each item has respected tag numbers 1, 2 and 3. i'm attempting to print out time remaining but i can only get as far as displaying seconds remaining with this: NSLog(@"%.2d Seconds Re

Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2008-12-10 Thread Chunk 1978
alendarUnit | NSMinuteCalendarUnit | > NSSecondCalendarUnit; > > NSDateComponents *comps = [cal components:units fromDate:startDate > toDate:[NSDate date] options:0]; > > The resulting comps object will respond to -hour, -minute and -second > messages. > > > Ashley >

Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2008-12-11 Thread Chunk 1978
AM, Ashley Clark <[EMAIL PROTECTED]> wrote: > On Dec 10, 2008, at 8:06 PM, Nick Zitzmann wrote: > >> On Dec 10, 2008, at 6:41 PM, Chunk 1978 wrote: >> >>> i read in the docs that the use of NSCalandarDate is discouraged >>> because it's going to be

Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2008-12-11 Thread Chunk 1978
sorry, i meant to say: ideally, it would be nice to have that start at 00 59 59 instead of 00 00 59. :) On Thu, Dec 11, 2008 at 7:32 AM, Chunk 1978 <[EMAIL PROTECTED]> wrote: > thanks everyone for the answers. > > i agree that Ashley's method is far more readabl

Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2008-12-11 Thread Chunk 1978
shley Clark wrote: > >> On Dec 11, 2008, at 6:32 AM, Chunk 1978 wrote: >> >>> thanks everyone for the answers. >>> >>> i agree that Ashley's method is far more readable than using modulus >>> calculations, so i'll look into that further

Change Color Of Appended NSString?

2008-12-12 Thread Chunk 1978
i have an NSMenuItem who's title changes programtically. how can i change the color of the appended string? -=-=-=-=- NSString *appendedTimeRemaining = [NSString stringWithFormat:@"%d Hours", [self timeMenuSelection]]; [appendedTimeRemaining setColor:[NSColor grayColor]]; [MainMenu_Item3 setTitle

Re: Change Color Of Appended NSString?

2008-12-12 Thread Chunk 1978
te: > > On 12 Dec 2008, at 14:10, Chunk 1978 wrote: > >> i have an NSMenuItem who's title changes programtically. how can i >> change the color of the appended string? >> >> -=-=-=-=- >> NSString *appendedTimeRemaining = [NSString st

setNeedsDisplay Equivalent for NSMenuItem?

2008-12-13 Thread Chunk 1978
i've noticed in some menu bar apps like Google's GMail Notifier, the time since last email check will display when changed while the menu is open. how can i emulate this behavior in my own NSMenuItem that changes every 30 seconds (it shows a timer)? currently it will change the setTitle of the NSM

override hide on deactivate?

2008-12-13 Thread Chunk 1978
i'm trying to override the hide on deactivate method but it's not working. i have unchecked "Hides On Deactivate" for my window in IB. -=-=-=-=- - (BOOL)hidesOnDeactivate { NSBeep(); return NO; } -=-=-=-=- i know that if i didn't want the window to hide on deact

Resolution Independent View?

2009-05-11 Thread Chunk 1978
Is it possible to have a view, say a simple square that is 5cm x 5cm, always maintain it size regardless of the mac's resolution? it seems the only way possible to produce a square of 5cm x 5cm programatically is to include the screens resolution into the equation. but besides having different res

Re: Resolution Independent View?

2009-05-13 Thread Chunk 1978
i suppose i could still try to do what i'm attempting by being slightly larger, but were your results on different screens drastically different in most cases? On Wed, May 13, 2009 at 4:12 AM, Gerriet M. Denkmann wrote: > > On 12 May 2009, at 16:33, Alastair Houghton > wrote: >> >> If, however,

What's the differnece between API and Framework?

2009-05-21 Thread Chunk 1978
my learning is still shady on what is actually an API... sounds like a framework to me... ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-a

Re: What's the differnece between API and Framework?

2009-05-21 Thread Chunk 1978
; So, you might think of a framework as one of many methods of delivering a > package of software with an API. > > Jon Hess > > On May 21, 2009, at 5:33 PM, Chunk 1978 wrote: > >> my learning is still shady on what is actual

Header Differences

2009-05-24 Thread Chunk 1978
i'm following a tutorial that lists the header file like this: -=-=-=-=- @interface PickersAppDelegate : NSObject { IBOutlet UIWindow *window; IBOutlet UITabBarController *rootController; } @property (nonatomic, retain) UIWindow *window; @property (nonatomic, ret

<    1   2   3