Re: File integrity

2008-05-22 Thread slasktrattenator
I know. I just want to discourage the baby crackers. Codesign looks interesting. Ptrace seems to have been strengthened in Leopard, too. At least I wasn't able to bypass it as easily as outlined by steike. Always something :-) Thanks! On Thu, May 22, 2008 at 1:22 PM, Jean-Daniel Dupas <[EMAIL PRO

File integrity

2008-05-22 Thread slasktrattenator
Hi all, is there a way to tell if my executable was launched by/attached to some other process? Basically, I just want to kill myself as soon as I sense those prying eyes, in order to make it just a little it harder for the crackers. TIA ___ Cocoa-dev

Re: dockMenu bug?

2008-05-03 Thread slasktrattenator
Thanks Jens. Sounds to me we don't need the quotation marks round "bug". On Sat, May 3, 2008 at 5:46 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 3 May '08, at 6:44 AM, [EMAIL PROTECTED] wrote: > > > > I'm having this problem where I cannot hide menu items in my dock > > menu. [menuItem setHi

dockMenu bug?

2008-05-03 Thread slasktrattenator
Hi, I'm having this problem where I cannot hide menu items in my dock menu. [menuItem setHidden:YES] does nothing, nor does checking the "Hidden" checkbox in IB. The dock menu itself is created in IB and connected to NSApp's dockMenu outlet. Is this a bug or am I missing something? I know I can j

Re: Subclassing NSScroller

2008-04-13 Thread slasktrattenator
.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/cocoa-dev/slasktrattenator%40gmail.com

Re: NSApplicationMain arguments [SOLVED]

2008-04-12 Thread slasktrattenator
Oh, right. I didn't think of that. Thanks for the correction and clarification. F. On Sat, Apr 12, 2008 at 6:46 PM, Ken Thomases <[EMAIL PROTECTED]> wrote: > > You're grabbing all defaults from all domains with the above, and promoting > them all into the NSArgumentDomain below, changing their p

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-12 Thread slasktrattenator
o not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/cocoa-dev/slasktrattenator%40gmail.com > > This email sent to [EMAIL PROTE

Re: Override AppleScrollBarVariant on NSScroller? [SOLVED]

2008-04-12 Thread slasktrattenator
#x27;t cut a swath that wide. > > > > No doubt both OP and iTunes have their reasons for screwing around with > the > > scroll bars. They just aren't good reasons. > > > > > >

Re: NSApplicationMain arguments [SOLVED]

2008-04-12 Thread slasktrattenator
Thanks Ken! That worked perfectly. Still curious why tweaking the argv[] array didn't, though. I did use a preceding dash for the key, and so it should have been the exact same thing as the code below, no? Anyway, here is a working example for anyone interested. Thanks again. int main(int argc, ch

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-12 Thread slasktrattenator
; ___ > > 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)lists.apple.com > > Help/Unsubscribe/Update you

Re: NSApplicationMain arguments

2008-04-12 Thread slasktrattenator
> > 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)lists.apple.com > >

NSApplicationMain arguments

2008-04-11 Thread slasktrattenator
Hi, I'm trying to add some launch arguments to my executable by modifying the arguments passed to main.m, but find that the new arguments are completely ignored. No matter what I pass to NSApplicationMain the executable launches with the same old default argsv[]. Is this not the right approach? Sh

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-10 Thread slasktrattenator
Thanks Mike, adding a default to NSArgumentDomain (i.e. by passing {"-AppleScrollBarVariant", "Single"} to the executable on launch) did the trick. On Thu, Apr 10, 2008 at 1:24 AM, Mike Abdullah <[EMAIL PROTECTED]> wrote: > I believe one normally does this system-wide via the user defaults. I > su

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-09 Thread slasktrattenator
On a similar note, how can I find out what the current AppleScrollBarVariant is? The docs don't cover this either :-/ On Thu, Apr 10, 2008 at 12:12 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking for a way to override the user's AppleScrollBarVariant > setting, and force the arrows on my c

Override AppleScrollBarVariant on NSScroller?

2008-04-09 Thread slasktrattenator
Hi, I'm looking for a way to override the user's AppleScrollBarVariant setting, and force the arrows on my custom NSScroller to be displayed at both ends of the scroller. The documentation has no mentioning of this. Does anyone know if this is possible? Thanks. F.

Re: System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-09 Thread slasktrattenator
not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/cocoa-dev/slasktrattenator%40gmail.com > > This email sent to [EMAI

Re: Continunous NSSegmentedControl?

2008-04-08 Thread slasktrattenator
the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/cocoa-dev/slasktrattenator%40gmail.com > > This email sent to [EMAIL PROTECTED] > ___

Re: Menu on system bar

2008-04-08 Thread slasktrattenator
the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/slasktrattenator%40gmail.com > > This email sent to [EMAIL PROTECTED] > ___ Cocoa-dev mail

Re: enterFullScreenMode trouble

2008-04-04 Thread slasktrattenator
Thanks for the reply. Actually I read those posts already, that's why I threw out the question here to see if someone could confirm it's a bug. Guess I'll have to revert to setting up the full screen environment manually. On Fri, Apr 4, 2008 at 11:24 PM, Sean McBride <[EMAIL PROTECTED]> wrote: > >

enterFullScreenMode trouble

2008-04-04 Thread slasktrattenator
Hi, I'm having a small problem with NSView's enterFullScreenMode:withOptions: method. The windowed view handles keyboard events by overriding keyDown:, but once I enter fullscreen mode it stops receiving these events, all I get is a NSBeep. I have correctly set the new fullscreen window's delegate

Re: NSScroller question

2008-03-29 Thread slasktrattenator
This works perfectly, just what I was looking for. Many thanks! F. On Sat, Mar 29, 2008 at 4:39 PM, Steve Weller <[EMAIL PROTECTED]> wrote: > > Try looking at the source for TextEdit. TextEdit adds a pop-up at the > end of the horizontal scroller by overriding NSScrollView's tile: > method. Yo

Re: NSScroller question

2008-03-29 Thread slasktrattenator
Thanks Troy for the in-depth account. Yes, my goal is to customize the scroller's appearance, and yes, I wish this process involved less guess-work. As you say, there is no empty space when you let the scroller draw normally. You only see this when drawing a custom scroller based on the rects retur

Re: NSScroller question

2008-03-27 Thread slasktrattenator
Yes, I meant scroller, not slider. Just had a glass of wine too much :-) Actually I don't want to add an accessory view, I want to get rid of the one that appears to be there by default. I have attached a screenshot showing what I'm talking about. The yellow part is the knob, drawn by filling the

Re: NSScroller question

2008-03-27 Thread slasktrattenator
Thanks, but the corner view is the right side corner of the header view, right? I was talking about the small view just below it, on top of the vertical slider and part of the slider itself. It's a tiny view of about 2 pixels height. I believe it corresponds to NSScrollerNoPart, but I'm not sure.

NSScroller question

2008-03-27 Thread slasktrattenator
Hi, NSScroller has a small view, by default two pixels high, just above the scroller and below the NSTableHeaderView's corner view. How can I get at this view? If you look at the XCode interface you can see they have put an icon in this view (the one that splits the editor view) and made it larger

Re: CIImage (TIFFRepresentation) memory leak

2008-03-11 Thread slasktrattenator
t admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/slasktrattenator%40gmail.com > > This email sent to [EMAIL PROTEC

Re: CIImage (TIFFRepresentation) memory leak

2008-03-10 Thread slasktrattenator
} > >> } > >> > >___ > > > >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-

Re: CIImage (TIFFRepresentation) memory leak

2008-03-10 Thread slasktrattenator
I narrowed this down by removing the filters, and the leak is still there. And what a leak! Everytime I draw the view the memory usage increases with the size of the drawn image. Yet this exact same code is used in the Core Image Programming Guide. So I figure it's a bug in Core Image. But how can

Re: No track index in iTunes SB?

2008-03-10 Thread slasktrattenator
Thank you! On Mon, Mar 10, 2008 at 8:04 PM, Christopher Nebel <[EMAIL PROTECTED]> wrote: > > On Mar 10, 2008, at 4:56 AM, [EMAIL PROTECTED] wrote: > > > Anyone know how to get the index of the current iTunes track using > > Scripting Bridge? With Applescript, it's as simple as "tell iTunes > >

CIImage (TIFFRepresentation) memory leak

2008-03-10 Thread slasktrattenator
Hi, I'm applying a Core Image filter to an image in a NSImageView subclass. The drawing works fine, except it leaks memory, not sure why. This is my drawRect method. Anything wrong with it? Thanks. - (void) drawRect:(NSRect)rect { [[self image] setFlipped:YES]; CIImage *image =

Re: No track index in iTunes SB?

2008-03-10 Thread slasktrattenator
Right, thanks. That was a typo in Mail. Still doesn't do the trick though. However, I found it does if I do a "get" on the [currentPlaylist tracks] and [iTunes currentTrack]. But this seems to cause a memory leak, so I'm not sure it's the right way to go. On Mon, Mar 10, 2008 at 3:49 PM, Jean-Dani

Re: No track index in iTunes SB?

2008-03-10 Thread slasktrattenator
Followup... I tried two workarounds, both however return an incorrect result: // Try #1 iTunesPlaylist *currentPlaylist = [ iTunes currentPlaylist ] ; SBElementArray *currentTracks = [currentPlaylist tracks]; int index = [currentTracks indexOfObject:[iTunes currentTrack] + 1]; NSLog(@"%d", index)

No track index in iTunes SB?

2008-03-10 Thread slasktrattenator
Anyone know how to get the index of the current iTunes track using Scripting Bridge? With Applescript, it's as simple as "tell iTunes to return index of current track", but iTunes SB has no such property (well, there is one, but it only refers to the index of the current playlist). It seems the iTu