Re: How to distribute an app: Installer or original file

2009-11-22 Thread Uli Kusterer
#x27;t be deleted because MyAppImporter.mdplugin is in use", so make sure you use a name where people who know a tad more can realize it's Spotlight's fault. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de

Re: How to distribute an app: Installer or original file

2009-11-22 Thread Uli Kusterer
new plugin. You may have to make sure the plugin has a different version number, and maybe delete your product or do a touch on the plugins' package folders to make sure it has a different change date than the old one, but it should Just Work(tm). Cheers, -- Uli Kusterer "The Wi

Re: Best approach to write an uninstaller for osx

2009-11-22 Thread Uli Kusterer
On 22.11.2009, at 20:52, Jens Alfke wrote: > On Nov 22, 2009, at 10:44 AM, Uli Kusterer wrote: >> Well, you may want to quit your app before you delete it, though (and refuse >> to uninstall until the user has quit it). Files may only actually get >> deleted when they&#

Re: How to empty the Trash programmatically?

2010-04-16 Thread Uli Kusterer
On 16.04.10 11:29, Matt Gough wrote: To be fair though, if it is a user-initiated emptying and it is done via Finder, then I think it is fine to initiate a Trash emptying from another app. What isn't fine is for it to be done behind the user's back. As long as it is obvious that this empties

Re: Zeroing out instance variables

2010-04-17 Thread Uli Kusterer
On 17.04.10 16:47, Ken Thomases wrote: On Apr 17, 2010, at 9:37 AM, Paul Sanders wrote: That is, retain counts are stored outside of the instance. In that case there is a danger that a pointer to whatever is referenced would be transferred to the copy of the object, which is not what you want.

Re: method caller mixup

2010-04-17 Thread Uli Kusterer
ust change the name, i.e. instead of -initWithParent: call it -initWithParentTrieNode:. -- Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: white screen windows at first

2010-04-27 Thread Uli Kusterer
AppKit state by messing with non-thread-safe objects from multiple threads. -- Uli Kusterer Sole Janitor http://www.the-void-software.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: white screen windows at first

2010-04-27 Thread Uli Kusterer
ike redraws, you may want to set breakpoints on C++ throws and objc_exception_throw and see if any of these gets triggered and by whom. Also, throwing C++ exceptions through C or ObjC code and ObjC exceptions through C or C++ code can royally screw you. -- Uli Kusterer "The Witnesses of Tea

Re: menu madness with retain count

2010-04-27 Thread Uli Kusterer
ind that, at least on 10.5 and later, you can hide menu items (and thus menus) if you find that recreating a "special" menu doesn't make it special anymore. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___

Re: NSApplicationMain question

2010-04-27 Thread Uli Kusterer
at is currently "main" is placed. Tricks many people. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: menu madness with retain count

2010-04-27 Thread Uli Kusterer
e finished and mDelegate may contain a weak reference to the delegate, or the thread may take longer, and then your code looking at the retain count will think it was a strong reference. There is no substitute to reading the documentation. Cheers, -- Uli Kusterer "The Witnesses of TeachText are

Re: menu madness with retain count

2010-04-27 Thread Uli Kusterer
ually figured it out using Instruments, or by following the calls to retain/release/autorelease on an object. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: menu madness with retain count

2010-04-27 Thread Uli Kusterer
On 28.04.2010, at 00:27, Shawn Erickson wrote: > On Tue, Apr 27, 2010 at 3:22 PM, Uli Kusterer > wrote: >> For example, bindings were notorious for causing retain circles when you >> bound to File's Owner in a NIB, and that was fixed in 10.5, IIRC. > > Fairly sur

Re: menu madness with retain count

2010-04-27 Thread Uli Kusterer
lication, in the case of the main nib file) as its File’s Owner. > > What about NSDocument subclasses? NSDocument uses NSWindowControllers to do its NIB loading, just passes itself in as the owner, so the NSWindowController should do its magic there, too. Cheers, -- Uli Kusterer "The Wi

Re: Finder file label from cocoa?

2010-04-28 Thread Uli Kusterer
n-specific file attributes (at the bottom of the file): http://github.com/uliwitness/UliKit/ In particular http://github.com/uliwitness/UliKit/blob/master/UKDirectoryEnumerator.h http://github.com/uliwitness/UliKit/blob/master/UKDirectoryEnumerator.m Might save you from writing additional code.

Re: Scripting Bridge for GUI scripting?

2010-04-29 Thread Uli Kusterer
around something like that? GUI scripting is done by a helper application, "System Events", I think. You probably just have to point the scripting bridge tool at that helper application and you'll get a neat header to call. -- Uli Kusterer "The

Re: Custom NSPathControl

2010-05-06 Thread Uli Kusterer
it more generic, feel free to send me a pull request (or e-mail me your changes, or whatever...) and I'd happily re-integrate them. -- Uli Kusterer Sole Janitor http://www.the-void-software.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Synthesized ivar for std::tr1::shared_ptr?

2010-05-06 Thread Uli Kusterer
l memory management, but from then on you can just add C++ ivars to the struct, as you'd do with the class. Just beware that you have to initialize all ivars, as you are not guaranteed to get zeroed-out memory back from C++ new (unlike ObjC's alloc). --

Re: self = [super init], nil?

2010-05-10 Thread Uli Kusterer
On May 10, 2010, at 8:19 PM, Thomas Davie wrote: > I personally really dislike this one, for two reasons: Third reason: It gives the method multiple points of return, which is a tiny bit dangerous if you're allocating/releasing resources. -- Uli Kusterer "The Witnesses of

Re: Where to find?

2010-05-10 Thread Uli Kusterer
you want a list of all applications on a Mac, you may have to go through Spotlight. But that takes time, CPU, and as such is generally not what you want to do. If you tell us more precisely what you are trying to achieve, as a high-level task, we might be able to make a better suggestion.

Re: Where to find?

2010-05-10 Thread Uli Kusterer
yes, perhaps LaunchServices would be best. If your application is a plug-in, it is probably a bundle. In that case NSBundle can be used to give you the path to your file. Or if you want the path to your host application, you can ask NSBundle for the mainBundle. Cheers, -- Uli Kusterer "

Re: App won't launch in Debug but release product is fine

2010-05-11 Thread Uli Kusterer
s and done clean build - 10.6 - XC 3.2.2 > Any thoughts on what would cause this? Have you checked whether anything shows up in the run log, or failing that, Console.app? -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___

Re: Mouse Drag Ignore.

2010-05-11 Thread Uli Kusterer
to only do that during drags though, not sure how you'd detect that reliably, particularly since a user could drag to the desktop and then drag that back. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Co

Re: To know what shows in the first line of a multiline NSTextField

2010-05-12 Thread Uli Kusterer
else > might be able to. Yes, text fields use the field editor, and it's not trivial to get the field editor correctly set up for the current state of the field and then mess with its layout manager. In that case I'd generally recommend just replacing the NSTextField with an NSTextVie

Re: Figuring out what's causing redrawing

2010-05-15 Thread Uli Kusterer
show you what other object could be causing this redraw? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://groups.yahoo.com/group/mac-gui-dev/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Figuring out what's causing redrawing

2010-05-15 Thread Uli Kusterer
a > view in a completely different place that is constantly getting redrawn for > no apparent reason. override its drawRect: ? How else would you get the dirty rects to see what is dirtied? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere.

Re: Figuring out what's causing redrawing

2010-05-15 Thread Uli Kusterer
On 16.05.2010, at 00:46, Nick Zitzmann wrote: > On May 15, 2010, at 3:00 PM, Uli Kusterer wrote: > >> override its drawRect: ? How else would you get the dirty rects to see what >> is dirtied? > > Right, but what is causing -drawRect: to be called? That's what I w

Re: UI blocking

2010-05-17 Thread Uli Kusterer
#x27;t even need to subclass. I'd suppose you should be able to run your own event loop by calling nextEventMatchingMask:... and (as needed) sendEvent: in a loop (+ creating/destroying an autorelease pool each time round). -- Uli Kusterer "The Witnesse

Re: UI blocking

2010-05-17 Thread Uli Kusterer
odal... methods, that'll disable the menus. Maybe that could be (ab)used. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: Regarding MVC design pattern

2010-05-18 Thread Uli Kusterer
ur would only be different if you were using the garbage collector. If all of this is new to you, you should really try to get a good book about the basics of Cocoa objects and memory management. -- Uli Kusterer "The Witnesses of Tea

Re: subclass overwriting superclass ivar

2010-05-26 Thread Uli Kusterer
ir first ivar where they think the base class ends, which is after the shorter ivar list. Could any of that be your problem? PS - If you want more detail and pretty pictures, there's a screencast by me on that topic available at http://www.mac-developer-network.com/video/video101003.ht

Re: Notification of file system modification arrives too early?

2010-05-28 Thread Uli Kusterer
r that purpose (see http://github.com/uliwitness/UliKit/blob/master/UKPushbackMessenger.h and http://github.com/uliwitness/UliKit/blob/master/UKPushbackMessenger.m). -- Uli Kusterer "The Witnesses of TeachText are everywhere..." __

Re: Notification of file system modification arrives too early?

2010-05-28 Thread Uli Kusterer
get a write notification and your file has that type, you *know* it's not intended to be processed yet. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: isKindofClass with NSData and NSKeyUnarchiver

2010-05-28 Thread Uli Kusterer
had moved by 6 miles in a split-second and thus wasn't shot, but that's not part of this discussion) -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: isKindofClass with NSData and NSKeyUnarchiver

2010-05-28 Thread Uli Kusterer
;t a good choice in many cases, though. It leads people to tack a lot of unrelated functionality onto foundational classes. You'd end up with "everything is a dictionary" if you followed through on that. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." _

Re: six things I wasn't able to do with Cocoa

2010-05-31 Thread Uli Kusterer
edit field, where you don't have a TEHandle unless you focus it). For the latter, if it's inside a scroll view (which it is by default when created from a NIB, even if you maybe told it to hide its scroll bars & border) you can probably just ask it for its frame and get the correc

Re: Touch screen framework in MAC

2010-06-01 Thread Uli Kusterer
nch/zoom, swipe and rotate. There's also an NSTouch class that's worth checking out for trackpad gestures. Maybe touchscreen manufacturers support that as well, these days. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http:/

Re: Writing an NNTP client

2010-06-01 Thread Uli Kusterer
aders and extract binaries and all that). You could also ask authors of existing NNTP clients, maybe they're willing to license their library if your use case is different enough from theirs. Panic's Unison is probably a surprisingly modern NNTP codebase. -- Uli Kusterer Sole Jani

Re: POST request on iPhone

2010-06-01 Thread Uli Kusterer
iKit/blob/master/NSURLConnection+PostDictionary.m Note that it has a fixed "boundary" string. The code is on Github, so if you want to submit code that makes sure the boundary string is unique and doesn't occur in the provided data, it'd be appreciated. :-) -- Uli Kusterer "

Re: App will not launch

2010-06-01 Thread Uli Kusterer
must Force Quit. Sounds like it launches and then hangs before it gets to the event loop. Have 'em fire up Activity Monitor and perform a sample and send that to you, then you might see what part of your app is stuck in an endless loop. -- Uli Kusterer "The Witnesses of

Re: populating radio stations like iTunes

2010-06-02 Thread Uli Kusterer
o, but there are tools to dump the raw requests (like IPNetMonitorX or CharlesProxy), which could probably be used to figure out what iTunes is actually doing. But that's like using undocumented API: It may break in spectacular ways at any time. Cheers, -- Uli Kusterer "The Witnesses o

Re: populating radio stations like iTunes

2010-06-02 Thread Uli Kusterer
m Cocoa, so I'll stop here. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: ANN: Syntax highlighting editor view

2010-06-02 Thread Uli Kusterer
Am Jun 2, 2010 um 3:03 PM schrieb Rui Pacheco: > BSD would be better for shareware developers. There's always my http://github.com/uliwitness/UKSyntaxColoredTextDocument/ if you want a more liberal license (it's zlib-style). -- Uli Kusterer "The Witnesses of TeachT

Re: Add button to Finder

2010-06-16 Thread Uli Kusterer
older MacOS versions, you need to use the old "Contextual Menu module" plug-in scheme, which isn't supported under 64-bit. -- Uli Kusterer Sole Janitor http://www.the-void-software.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: File descriptors not freed up without a -closeFile call

2010-06-23 Thread Uli Kusterer
7;re running your own loop where you create and tear down lots of pipes, it might help to just create your own autorelease pool inside the loop on each iteration. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev

Re: Text rendered in NSImage is fuzzy

2010-06-27 Thread Uli Kusterer
f a superview could be wrong in this case as well. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: [iPhone] Terminating iPhone App programatically

2010-07-09 Thread Uli Kusterer
r the user, it should, instead of requiring manual process management. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: Add Tick Mark in NSCombobox List

2010-07-18 Thread Uli Kusterer
a tick mark, use an NSPopUpButton. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Menu Item Key Equivalent

2011-08-05 Thread Uli Kusterer
idea, as it makes them more discoverable. Just make sure you don't do it like Pixelmator: Every time I habitually try to tab from one text field to the next, all my palettes just vanish. The first few times this happened, I thought Pixelmator had crashed. Cheers, -- Uli Kusterer

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-16 Thread Uli Kusterer
mage views, with a few labels (of my own custom NSTextField subclass, so it can draw with shadow, bezel and vertically centered) in between. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___

Re: How do you enable a view controller to be instantiated programmatically or from a XIB?

2011-09-24 Thread Uli Kusterer
created code that populates the view controller manually, why would you want to create a XIB as well? Maybe I'm just not understanding what you're trying to do. What are you doing, and at what point are you having a problem? Cheers

Re: Singletons with ARC

2011-12-08 Thread Uli Kusterer
plemented in Mac C, ObjC and C++ compilers that reinforce this? Just trying to figure out whether I have to change a lot of existing Mac and iOS code now, or whether it suffices to be aware of the problem and not write it in new code and stuff that gets ported. Cheers, -- Uli Kusterer "

Re: Exceptions and autorelease pools

2011-12-09 Thread Uli Kusterer
jects due > to numerous exceptions because there shouldn't be numerous exceptions. Except if you're working with Distributed Objects, of course. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-d

Re: Singletons with ARC

2011-12-09 Thread Uli Kusterer
ry about the whole "an assignment may not be an atomic operation" thing on older CPUs that I did it right "by accident" :-) Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa

Re: How to parse a search string..

2012-02-13 Thread Uli Kusterer
sOfString:@"'" withString:@" "]; > sbar.text = protectedString2; > > But this loops :) What do you mean "it loops" ? This should replace any tick marks with spaces in your string. What were you expecting it to do ... ? Cheers, -- Uli Kusterer "The

Re: copy & isEqual nightmares

2012-02-13 Thread Uli Kusterer
ed and are somehow not copying your object. In that case changing the hash will not do much good, as you'll change the hash for both places that reference this single object. If you have two, the moment you change a value in it, the hash should change as well.

Re: copy & isEqual nightmares

2012-02-13 Thread Uli Kusterer
On 13.02.2012, at 02:54, James Maxwell wrote: > NSLog(@"%@", [obj hash]) I hope this is a typo. %@ expects an object, while -hash returns an integer. If you're lucky, this will crash, or just output garbage. Your compiler should be warning you about that line. Cheers, --

Re: How to parse a search string..

2012-02-13 Thread Uli Kusterer
;t that what NSFormatter is for? Allow only input of numbers into a text field, and the likes? That's how NSOpenPanel does, it substitutes any colon character you type in (which is, to criminally simplify, the path component separator character on HFS) with a minus sign. Cheers, -- U

Re: copy & isEqual nightmares

2012-02-14 Thread Uli Kusterer
ch sense to compare. Also, for some objects, equality is an impossible thing to tell. E.g. how would you compare two NSNotificationCenters? Now given, most such objects wouldn't implement -copy, but I don't think I've ever seen an object where it made sense to both *not* have copies

Re: Playing Music in Objective C

2012-02-14 Thread Uli Kusterer
d G4-based laptops, not the iPhone app) back then. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: Odd display of percent character

2012-02-14 Thread Uli Kusterer
't have to tell my localizers to double their '%' signs in these five strings, or check the string for a '%' sign that some language might use in their translation of whatever the orginal '%'-less message might be. Cheers, -- Uli Kusterer "The Witnesses o

Re: copy & isEqual nightmares

2012-02-15 Thread Uli Kusterer
to the limited value space. Hash not equal -> objects not equal. Hash equal -> object equal or hash collision; compare in detail. The only other option would be to have a call to rand() or time() in there to mix things up, but then it would not be suitable for use in a hash table structure.

Re: Odd display of percent character

2012-02-15 Thread Uli Kusterer
On 14.02.2012, at 17:53, Jens Alfke wrote: > On Feb 14, 2012, at 5:38 AM, Uli Kusterer wrote: >> In addition to this, whenever I do not actually need a format in a case like >> NSRunAlertPanel or whatever, I set the string to @"%@" and specify the >> actual strin

Re: How can I detect a mouse click outside a child window on Leopard?

2012-02-15 Thread Uli Kusterer
that handles mouse clicks and closes your fake popover (and itself), I suppose. Might have to call -preventWindowOrdering in there too, in case someone uses Spaces or Exposé to select your blanking window or otherwise screw up window ordering. Cheers, -- Uli Kusterer "The Witnesses o

Re: -[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)

2012-02-15 Thread Uli Kusterer
figure out where the data should come from, and >> apparently has a fallback to some Interface Builder specific code that >> explodes? > > View-based table views and outline views crash the IB simulator. This > is a known issue. > > r. 9442221 Any chance of you po

Re: Was: issues using encodeWithCoder: with NSAttributedString for iOS

2012-02-27 Thread Uli Kusterer
approved. My guess is that since CGColor is a CoreFoundation class, it'd probably involve some hackery to make that category work ... ? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing l

Re: Xcode - An Apple Embarrassment

2012-03-02 Thread Uli Kusterer
ind that much when it was still beta, but that they released it as final when it was still so crashy...? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void.com ___ Cocoa-dev mailing list

Re: Xcode - An Apple Embarrassment

2012-03-02 Thread Uli Kusterer
ot everyone uses Xcode. I vaguely remember hearing that the Kernel folks mainly use Makefiles. Which makes sense considering how much of that is open source, cross-platform etc. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de __

Re: Xcode - An Apple Embarrassment

2012-03-02 Thread Uli Kusterer
is point to remove those, and if you have Apple Events, removing AppleScript working on top of it is unlikely to save much manpower. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-de

Re: New to internationalization

2011-02-01 Thread Uli Kusterer
e+builder+localization+tutorial and got this as the first result: http://www.icanlocalize.com/site/tutorials/iphone-applications-localization-guide/ Looks fine and correct. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ht

Re: origin: lower left vs lower right

2011-02-03 Thread Uli Kusterer
lly adjust any content that is aligned with the upper left, because when resizing an unflipped coordinate system, the upper left corner has "moved", even though on a Mac the grow box is in the lower right. Cheers, -- Uli Kusterer &quo

Re: origin: lower left vs lower right

2011-02-03 Thread Uli Kusterer
's certainly an interesting topic for other mailing lists. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Localizable.strings not being read...

2011-02-03 Thread Uli Kusterer
le bundle? Strings are looked up from the main bundle by default, which is the application, not the loaded bundle. That's a common issue that trips people up. You may have to explicitly specify the bundle (e.g. using bundleForClass:). Cheers, -- Uli Kusterer "The Witnesses of TeachTe

Re: Understanding CoreData

2011-02-06 Thread Uli Kusterer
think it would help if you posted relevant portions of source code and more details about your application's setup. E.g. where and how you trigger instantiation of objects, tell it to instantiate your subclasses for each of the subclasses. Che

Re: mount .dmg and run file from there

2011-02-19 Thread Uli Kusterer
t;y" and "z" are numbers). Any suggestions? Sparkle does that. It calls the hdiutil command line tool using NSTask, which lets you not only mount the DMG, but also query/specify where it will be mounted. Then you just have to list the contents at that location to find the

Re: Accessing a managedObject property from within an accessor of another property

2011-02-22 Thread Uli Kusterer
d, which is probably something completely different. So I recommend choosing your own three-character prefix (BST?), just in case there's some private Apple class named "Note". Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de

Re: Help Mixing Objective-C & Objective-C++

2011-02-24 Thread Uli Kusterer
t, while C++ lets you say void MyFoo(); you need to specify void MyFoo( void ); to have a valid prototype in straight C (and ObjC). Otherwise you'll get a warning about missing prototypes. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." __

Re: "Highlight" a window of another application

2011-02-24 Thread Uli Kusterer
election and the highlighting of individual windows if you hit the space key while in Cmd-Shift-4 mode. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com ___ Cocoa-dev mailing list (Cocoa-de

Re: WindowID to front

2011-02-28 Thread Uli Kusterer
ng (I don't think AppleScript deals in Window IDs, but that may have changed since I last had to put up with it). You may have more luck using the accessibility APIs to both list the windows and then bringing one to front. Cheers, -- Uli Kusterer "The Witnesses of TeachT

Re: Outlets Not Connected In awakeFromNib

2011-03-03 Thread Uli Kusterer
when the containing NIB is instantiated, and a second time after you load the containED NIB. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void.com ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Distribution via DMG fails

2011-03-29 Thread Uli Kusterer
ne). Are you sure you're building the application the same way for both cases? If one's a debug build and the other is a release build, then that could explain that you're not getting all architectures in one case. Cheers, -- Uli Kusterer "The Witn

Re: file done writing?

2011-04-12 Thread Uli Kusterer
it. I have a bunch of file watching classes (for FSEvents, FNNotify and KQueue) at http://www.github.com/uliwitness/UliKit Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing

Re: file done writing?

2011-04-13 Thread Uli Kusterer
On 12.04.2011, at 17:54, Rainer Standke wrote: > Thanks for pointing these out, Uli. Are those classes youhave on github newer > than, let's say, UKKQueue on you website at > http://zathras.de/angelweb/sourcecode.htm? Yes. Cheers, -- Uli Kusterer "The Witnesses of Teach

Re: Closing an app with the red dot.

2011-05-17 Thread Uli Kusterer
re as a user I'd like that. Maybe that is what people meant > when they said "that is the way Mac works". Doesn't matter what you like as a user, you're a programmer :-p Seriously, many applications on the Mac work that way. Close all windows in Mail.app and click

Re: Why RunLoop?

2011-05-20 Thread Uli Kusterer
asses like NSURLConnection may not behave as expected if your thread has no run loop. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: tools for writing help books

2011-06-08 Thread Uli Kusterer
PHP command line tool over my help files. I'm currently mainly using it for includes, so I can write my menu in one file, and all the others just reference it. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." _

Re: Drawing noise in Cocoa (preferably fast)

2011-06-16 Thread Uli Kusterer
e could just be the processor. My laptop has a 2.4 GHz core > i5 Might also be the GPU. After all, CoreImage's whole point is that it runs on the GPU preferably, and frees the CPU up for other uses. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere

Re: Custom NSSlider

2011-06-16 Thread Uli Kusterer
Spotlight has it, or QuickTime Player X), you'll likely have to roll your own. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: How to redraw a view in slow-motion

2011-06-19 Thread Uli Kusterer
st redraw that. Of course, if your window gets resized, you may have a smaller image than your view size, but only until the next animation step, so you could probably just draw it in the right position and draw a pattern (like Maps.app on the iPhone does it) in the empty areas in the meantime. C

Re: Porting ResEdit Text Resources to OS X

2011-06-19 Thread Uli Kusterer
les natively, and then stash that in an NSTextView for display. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Animating handwriting

2011-06-24 Thread Uli Kusterer
k coordinates, and then draw bezier paths repeatedly, each time to one more point than before. Then draw the corresponding animation instead of each letter in the font. You would have to layout the text manually, but for button titles and other one-line (or hard-wrapped) text that usually wor

Re: Transparency Help 2

2009-11-28 Thread Uli Kusterer
e, specify that as a mask for your context, and all white areas will be "clipped away". If you now draw a black rectangle at the yize of your image, you should reproduce the same B/W image you had before, but transparent. -- Uli Kusterer Sole Janitor http://www.t

Re: Hiding String Constant in Compiled Code

2009-11-30 Thread Uli Kusterer
gs processed that way can be stored as arrays in your app, and you can then decode them at runtime (Both XOR and Rot13 are symmetric de/encodings), pass them to stringWithUTF8String and be on your way. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." _

Re: Best way to hook into the run loop?

2009-12-06 Thread Uli Kusterer
level command and submit its own undo > tasks. I thought that was what undo groups were for? Open a group at the start of the drag manually, close it at the end, and everything in between gets lumped into one big action at the end. It may get "replayed" internally, but will al

Re: Unable to write in InfoPlist.strings file from cpp

2009-12-09 Thread Uli Kusterer
On 09.12.2009, at 06:11, Parimal Das wrote: > Thanks a lot Greg. > Interpret as UTF8 solved the problem. Be careful, though: Some MacOS versions have a bug where .strings files had to be UTF16 to actually work. I don't think Apple has fixed that yet. Cheers, -- Uli Kusterer "

launchApplication: giving error -10827 ?

2009-12-09 Thread Uli Kusterer
ecause I can see the executable there, and I can double-click the app in Finder just fine. Anyone know what the reason for this message could be, or even how I can get fix it? Since I'm launching an app, I also tried to use -launchApplication: instead, but the results were identical. Che

Re: Anyone written a framework for setting xattr attributes?

2009-12-11 Thread Uli Kusterer
On 11.12.2009, at 09:33, Scott Anguish wrote: > The subject says pretty much everything. I’m looking for a simple way to set > some xattr attributes. http://www.zathras.de/sourcecode.htm#UKXattrMetadataStore That about what you're looking for? Cheers, -- Uli Kusterer "

Re: Finding process path from Cocoa?

2009-12-11 Thread Uli Kusterer
n NSBundle, build two versions, one that uses the PM, the other that is a shim around NSRA, and then load the right one at startup depending on system version. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com _

Re: Menu shortcuts without modifiers?

2009-12-21 Thread Uli Kusterer
the menu item shortcut dynamically depending on what is focused. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: Please if some one knows

2009-12-21 Thread Uli Kusterer
On 21.12.2009, at 23:46, Graham Cox wrote: > It's not good etiquette t repost the same question repeatedly, especially > under different titles - that just breaks up the thread and makes it less > likely you'll get an answer. At least, not within the same week. -- Uli Kust

<    1   2   3   4   5   6   7   8   9   >