Re: Localization strategies?

2009-12-21 Thread Uli Kusterer
ain keys, and the .strings files can hold the actual strings, including comments. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Version number objects

2009-12-21 Thread Uli Kusterer
provides > a comparison method. I'm willing to share, or can post it somewhere if > there's a common site for such things. I'd suggest you submit it as a patch to/subclass of Sparkle's SUVersionComparator. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywh

Re: Interfacing cocoa/obj-c within a C plug-in API

2009-12-22 Thread Uli Kusterer
SApplicationLoad() - catch any ObjC exceptions so they don't waltz through the C code - Create the requisite autorelease pools Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Menu shortcuts without modifiers?

2009-12-22 Thread Uli Kusterer
he menu item, but it would be a little confusing to users if they don't see the shortcut.I'd be open for any suggestions. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Coco

Re: Call Cocoa from C++

2009-12-24 Thread Uli Kusterer
t; with a category, as in "id", but it's a tad more elegant. 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

Re: MyDocument.xib v MainMenu.xib

2009-12-30 Thread Uli Kusterer
s when it needs to re-request information from the first responder. -- 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 admi

Re: Document-based application issue

2009-12-30 Thread Uli Kusterer
ng Launch Services, or might cause LS to not consider your app to be able to open the UTI for that kind of file. Just wildly guessing here, but if you find no other solution, it's an avenue to investigate. -- Uli Kusterer "The Witnesses of TeachTex

Re: NSImage

2010-01-01 Thread Uli Kusterer
David, I think you may want to read Henry's answer again. The path going through NSBitmapImageRep and NSImage that he recommends doesn't involve any CGBitmapContexts or CGImageRefs. Well, at least not in any code you write :-) -- Uli Kusterer "The Witnesses of TeachText

Re: Standard Alert Note/Warning/Stop icon NSImage Names?

2010-01-21 Thread Uli Kusterer
con constant from Icon Services, and then pass that to NSWorkspace's -iconForFileType:. In that case, at least you'd get an NSImage right away. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void.com

Re: Allow only root/admin users to execute the cocoa app

2010-01-25 Thread Uli Kusterer
run as root (only a few tasks like loginwindow). If you do so anyway, you're tearing a hole in Apple's security policy and endangering your users' Macs. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___

Re: initWithCoder / unarchiveObjectWithData Memory Management Question

2010-02-20 Thread Uli Kusterer
e want right now, they can change it internally, and start calling alloc again without you having to know about that and having to change your code. They just have to make sure they autorelease. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de

Re: Cocoa equivalent for 'InstallApplicationEventHandler'

2010-02-20 Thread Uli Kusterer
in your application instance. Instead, forward the event to your delegate. That way, you can use the same NSApplication subclass in your other apps. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://groups.yahoo.com/group/mac-gui-dev/

Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?

2010-03-01 Thread Uli Kusterer
ll, I haven't tried it. But it's worth investigating. 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 mode

Re: Carbon is C++?

2010-03-01 Thread Uli Kusterer
and how it is broken? I'm using lots of C++, and this would be helpful. Cheers, -- Uli Kusterer "The witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: UITextView as its own delegate - infinite loop on keyboard select

2010-03-01 Thread Uli Kusterer
does not recurse, the stack stays about 20 stack frames deep. I haven't read that thread, so you may well be true, but just going by your description, tail recursion optimizations, as well as IMP cacheing, could cause the behaviour you're observing. Cheers, -- Uli Kusterer &quo

Re: How to draw background image in my app window

2009-05-31 Thread Uli Kusterer
etImage: [[NSImage alloc] initWithContentsOfFile: path]]; Are you using garbage collection? If not, you are leaking the image and the image view here. In that case, you may want to re-read Apple's memory-management documentation, which describes which things need to be released and

Re: Several Questions

2009-05-31 Thread Uli Kusterer
ether your app has hung. You could just do a ping/pong set of question/reply notifications that your daemon sends to your app and gets a reply. If the app is still running but there's no reply within a sensible timeframe, something has gone wrong. Cheers, -- Uli Kusterer "T

Re: Several Questions

2009-05-31 Thread Uli Kusterer
that NSDistributedNotificationCenter.h is where it was at :-/ 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

Re: Using non-id sender in IBAction methods

2009-06-07 Thread Uli Kusterer
[sender respondsToSelector: @selector(whateverYouAreCalling:)] or so instead of -isKindOfClass:. The point of the assert is to make your code fail in a noticeable way when someone breaks the assumptions it makes. Cheers, -- Uli Kusterer "The Witnesses of Teach

Re: self Changes on Open Panel

2009-06-10 Thread Uli Kusterer
, -- 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 list. Contact the moderators at cocoa-

Re: Putting files in an flat-file executable

2009-06-13 Thread Uli Kusterer
next executables. 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 list. Contact th

Re: NSView directly drawn on screen?

2009-06-13 Thread Uli Kusterer
previous front process, and activating it again after you've closed. 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 adm

Re: Coming up with ideas

2009-06-14 Thread Uli Kusterer
ched through fairly automatically, and your recorded voice does a perfect voice-over. If any of this interests anyone, let me know. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ C

Re: Positioning of autocomplete popups

2009-06-14 Thread Uli Kusterer
completions in it? 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 list. C

Re: Show the dock icon's context menu:

2009-06-21 Thread Uli Kusterer
cessibility APIs and some other related things that lets you determine dimensions of onscreen items, simulate clicks in them etc. So, you *can* do all of that in code, but in this case putting up with AS's broken syntax is probably a better option than trying to do the right thing yours

Re: How to fill rectangle under vertical scroller?

2009-06-21 Thread Uli Kusterer
tical scroller (if no horizontal scroller is there), and sets it to opaque as well. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: NSTableView - populating from C procedure

2009-07-25 Thread Uli Kusterer
izeof() wouldn't know which one to use. Heck, ANSI malloc() doesn't even have a standard way of determining a block's size. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _

Re: Challenge: Block Main Thread while Work is done, with Timeout

2009-07-25 Thread Uli Kusterer
bring the (modeless) progress panel to the front after 4 seconds or so. It would be kinda silly if an action that is usually immediate but occasionally takes a minute to time out always showed a modal progress panel for a split-second. Users would get epileptic seizures from the title bar f

Re: defining NSColor constants

2009-08-10 Thread Uli Kusterer
pp's lifetime, you can let the OS recycle it along with all your app's memory when your application shuts down. Hope that helps, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-

Re: Disabled controls don't update their visual appearance

2009-08-10 Thread Uli Kusterer
Created]]; [resetMetaDataButton setEnabled:[movieFile.movieMetaData isCreated]]; } I presume tabView, movieFile, toggleWriteCheckMarksButton and resetMetaDataButton are instance variables, and most of them are outlets. Is any of them perhaps NIL at the point where your code fails? Cheers, -- Uli Kusterer

Re: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-10 Thread Uli Kusterer
= [[MyTextView alloc] init]; Isn't that missing an autorelease? Or is this documented as an exception somewhere? Looks like you're leaking a text view each time this is called. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." h

Re: To get system sounds for Move or Copy operations

2009-08-10 Thread Uli Kusterer
and I haven't tried whether it works, but that it's not deprecated hints that it might work after all. Can't hurt to try it. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _

Re: System Sound, and Audio Services [solved more] (was: NSSound play often fails)

2009-08-10 Thread Uli Kusterer
move back to Apple's NSSound without many code changes if the issues you've been encountering ever get fixed. If you make any additions/changes to these classes, I'd appreciate if you sent the code back to me, so I can include them. Cheers, -- Uli Kusterer "The W

Re: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-11 Thread Uli Kusterer
ng confusion. Should have read the code & comments more carefully. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Color with pattern image

2009-08-11 Thread Uli Kusterer
x27;s a flipped property on NSImage that you could use to fix the upside-down part of this new problem. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: To get system sounds for Move or Copy operations

2009-08-11 Thread Uli Kusterer
he next. If you do use this, make sure you write your code so it gracefully copes with these sounds no longer being there. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev

Re: Disabled controls don't update their visual appearance

2009-08-14 Thread Uli Kusterer
m). Your code should only load its model into ivars, and try to update the GUI (if it is there) in *both* the load method (for the case where it's a revert) and the windowControllerDidLoadNib method (for the regular "open" case. Cheers, -- Uli Kusterer "Th

Re: Syntax Coloring?

2009-08-26 Thread Uli Kusterer
cecode.htm#UKSyntaxColoredTextDocument It's pretty comprehensive and performance is good. It's free for non- commercial projects. And very cheap for commercial projects. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere.

Re: Drawing Text in an NSImage

2009-08-27 Thread Uli Kusterer
s particular API, an NSView object having focus includes the case of an NSImage object having focus. You may want to file a documentation bug requesting clarification. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere.

Re: virtual ivars

2009-08-30 Thread Uli Kusterer
+ usage. Just one note: This example is hopefully only that, an example. Because it would be bad C++ style if you didn't call the actual C++ accessors and went messing with your C++ class's ivars directly from a separate (ObjC) class.

Re: How to extract the "Artist" information of an song file?

2009-08-30 Thread Uli Kusterer
u'll find a bunch of Wikipedia pages and others that should get you the info. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: NSPanel, changing the look of the min button

2010-08-03 Thread Uli Kusterer
h F-Script and it has the bezel style I set but the window still > draws the standard widget. Any other ideas? Have you tried hiding that button and creating your own button to put in its place? -- Uli Kusterer "The Witnesses of

Re: isTemporaryID unrecognized selector?

2010-08-16 Thread Uli Kusterer
op on Objective-C exceptions" selected in the "Run" menu in Xcode, then try doing this again. The debugger should show you who is calling this and getting an exception. BTW -- The word "Category" has a special meaning in Objective C. I'd suggest you change that clas

Re: isTemporaryID unrecognized selector? [SOLVED]

2010-08-17 Thread Uli Kusterer
On Aug 16, 2010, at 8:40 PM, Ferhat Ayaz wrote: > On Aug 16, 2010, at 8:02 PM, Uli Kusterer wrote: >> On Aug 14, 2010, at 1:06 PM, Ferhat Ayaz wrote: >>> I received an exception from my application which I can not figure out. I >>> have a subclass of NSManagedObje

Re: Erratic Cocoa Behavior

2010-08-17 Thread Uli Kusterer
ine arguments (e.g. double-click your app in the "Executables" group in Xcode and check out the arguments and environment variables there). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailin

Re: Navigation Services

2010-08-25 Thread Uli Kusterer
s > just thinking oh well, on to clunksville! You're aware that you can put your qlgenerator in your application's bundle to ensure it will always be available, right? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." __

Re: Performance issue

2010-08-26 Thread Uli Kusterer
but I am not > getting, which will give the right solution. > > Please share any information if you have something or correct me if anything > I am doing wrong. Have a look at Instruments, and Shark. they came with Xcode in your Dev Tools installation. Chee

Re: Performance issue

2010-08-27 Thread Uli Kusterer
ments tool" as something else the first time round. -- 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: NSOpenPanel -setAllowedFileTypes

2010-08-27 Thread Uli Kusterer
to your users, instead of forcing them to filter the files they can't have for a (for them) arbitrary reason, if you converted files to whatever type their machine supports best. -- Uli Kusterer "The Witnesses of TeachText are everywhere..

Re: NSOpenPanel -setAllowedFileTypes

2010-08-27 Thread Uli Kusterer
e back to "normal". 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

Re: Transparant button click

2010-08-30 Thread Uli Kusterer
a subclass of NSButton and check the pixel clicked on the NSImage for transparency > 0.5 (or use 10.6's new image hit-testing method)? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing

Re: Programmatic View Question

2010-09-20 Thread Uli Kusterer
hat you could load a nib multiple times. Thanks for > the info. You'll need a new file's owner, though. Otherwise the newly-loaded NIB will fill out the same outlets each time, losing the old ones. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___

Re: NSImage

2010-09-20 Thread Uli Kusterer
attaching your NSObject subclass to the drag as a drag flavor (which can't take custom classes -- so I recommend you look into NSKeyedArchiver/NSKeyedUnarchiver to generate an NSData from your objects). I hope I've pointed you in the right general direction(s). C

Re: What's the point of @properties?

2010-09-22 Thread Uli Kusterer
;t have to write is a line of code you don't have to debug And finally: properties contain additional mark-up on a method. A future version of the Clang Static Analyzer could detect violations of thread-safety in your code and similar issues with help from property declaration

Re: Efficiently adding a bunch of items to an NSMutableArray

2010-09-22 Thread Uli Kusterer
take long? Does this code run so frequently that it's even worth spending time on optimizing it? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: What's the point of @properties?

2010-09-22 Thread Uli Kusterer
ight due to unconnected outlets. You want outlets to show up automatically. 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 requ

Re: Smooth scrolling in NSScrollView

2010-10-15 Thread Uli Kusterer
ed whether you are doing any unnecessarily repeated drawing that you could be cacheing to speed up the views, or display of a table view or whatever? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Coc

Re: Identifying Cocoa Methods

2010-10-15 Thread Uli Kusterer
g-to-the-mac.htm PS - Of course, if you have CoreGraphics code, you can just take that along. See [NSGraphicsContext currentPort] and [NSGraphicsContext graphicsContextWithGraphicsPort:flipped:]. If you still have Quickdraw code with GWorlds, NSImage is your friend. If you have QuickTime movie code, ignor

Re: Partially opaque window with opaque views

2010-10-15 Thread Uli Kusterer
then draw on top of this transparent, rectangular canvas with NSViews and whatever shapes and alpha values you want to make something like the dock. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev maili

Re: What is the expected Cocoa API behavior in an incomplete object traversal?

2010-10-16 Thread Uli Kusterer
and even the class names of the problematic objects etc.). 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

Re: NSSavePanel does replace / in the filename with a :

2010-10-18 Thread Uli Kusterer
n FSRef inside it, so it's a much faster and more efficient way of storing file references than paths (at least on 10.6 and later, where this actually got implemented). You can even get back alias-like data for storing on disk by grabbing the "bookmark data" from a NSURL. Cheers, --

Re: remove icon from Dock

2010-10-18 Thread Uli Kusterer
On Oct 13, 2010, at 5:57 AM, Kyle Sluder wrote: > Meanwhile, iWork 09's installer does this very thing. It adds its > icons to the dock and then quits it. Quod licet Iovi, non licet bovi. 'nuff said. Cheers, -- Uli Kusterer "The Witnesses of Tea

Re: AM/PM letter UNICODE issues

2010-10-18 Thread Uli Kusterer
mat string that you grab from your Localizable.strings file, and make sure it makes sense for every localization you have, but this will just confuse users. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _

Re: AM/PM letter UNICODE issues

2010-10-18 Thread Uli Kusterer
u're on iOS, and I'm not sure where iOS gets its date settings from, so that may be a less pathological case, but honestly, you're asking for trouble. But as you said, I don't expect you to justify yourself. It's your program. I just think you (and anyone finding t

Re: How to Distinguish Between Two TableViews

2010-10-18 Thread Uli Kusterer
to be done. Don't try to distinguish between them, give them each a separate data source/delegate object. That way, you get only one table's messages, and it's obvious which one it came from. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.mast

Re: How to Distinguish Between Two TableViews

2010-10-19 Thread Uli Kusterer
have a separate object, not to have a giant switch statement like in procedural C. > Sometimes the same data source for more than one table can be a sensible > design. Yeah, but think of what the more *common* case would be? Cheers, -- Uli Kusterer "The Witnesses of TeachT

Re: Framework Major versions

2010-10-19 Thread Uli Kusterer
asses that need to grow that way, thus saving you the need to do one final framework revision to switch to this "stable" ivar layout. Only downside is you won't be able to use @synthesize anymore. -- Uli Kusterer "The Witnesses of TeachText are

Re: NSDictionary allValues not mutable

2010-10-19 Thread Uli Kusterer
its values. It probably uses some kind of tree data structure or whatever. The array is very likely created specially for you when you call allValues. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://groups.yahoo.com/group/mac-gui-dev/ __

Re: Debugging a self made Framework

2010-10-25 Thread Uli Kusterer
after the first one. It's impolite to keep reposting messages. Keep in mind people are in different time zones here. It'll take about 24 hours for each country to have had an opportunity to see your message, why annoy everyone by posting a second, identical me

Re: Audio Streaming with Cocoa

2010-10-25 Thread Uli Kusterer
to > you). CoreAudio and NSURLConnection? PS - don't bother showing me your code. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Move UINavigationBar down?

2010-10-25 Thread Uli Kusterer
just try both than wait for us to make a suggestion. -- 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: Few binaries in one application's Bundle

2010-10-25 Thread Uli Kusterer
> my appliations in a neat one bundle (counting that the user should be > able to start only one main binary, while other binaries are started > automatically by agent or by the main application). I usually put helper executables in Resources instead of in MacOS. Maybe that fixes it? --

Re: Writing an Uninstaller

2010-11-03 Thread Uli Kusterer
ew-one dance. There were lots of random crashes when operating on the innards of a running application. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com ___ Cocoa-dev mailing list (Cocoa-dev

Re: How to avoid multiple clicks on a push button

2010-11-25 Thread Uli Kusterer
r code (i.e. the controller and the model, not the view) to keep internal state. That way you can remember whether this is a situation where two clicks are OK or not. Alternately, have you tried setIgnoresMultiClick: ? Cheers, -- Uli Kusterer "T

Re: how to redraw a view

2010-11-26 Thread Uli Kusterer
d of my view to be called. I tried [self setNeedsDisplay] or > [MyView setNeedsDisplay] but this doesn't work. Is this iOS or MacOS? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing l

Re: File name issue with German umlauts

2010-12-17 Thread Uli Kusterer
by such a wrong way and hence didn't get its name properly normalized ... might be worth trying to re-type the file name in Finder to make sure it's correct? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de __

Re: File name issue with German umlauts

2010-12-18 Thread Uli Kusterer
seems it's a bug in the application doing the searching, and if you don't have the source to that, you're out of luck. Report it to the authors, and hope they fix it. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." htt

Re: UKKQueue and CVS

2010-12-23 Thread Uli Kusterer
atter). Many applications create a second file, write to that, then swap the two out afterwards. That way, if the write fails, you don't lose the file. Since kqueues work at a low level, you'll get a 'delete' or 'rename/move' notification in that case only. Have you

Re: button states usually always disabled

2011-01-08 Thread Uli Kusterer
am's job is to help them get work done, and ideally faster. Your program's job is not to look good. That's not what your user paid for. Well, of course your program is supposed to look good, but not at the cost of being usable. So I recommend against it. Cheers, --

Re: sending a message from an initializer method

2011-01-13 Thread Uli Kusterer
7;s a class method, subclasses can't accidentally mess with the half-initialized object. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: Maintaining NSCursor outside of app window

2011-01-14 Thread Uli Kusterer
to use the parameter. 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 list. Cont

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-14 Thread Uli Kusterer
r. The way Jerry seems to have it right now, if I simply click a list header, my carefully hand-crafted item order is irrevocably destroyed. I can at best undo it. Sort order/list headers are a view-specific attribute. They shouldn't affect the model. Cheers, --

Re: How to change the product name with command line builds?

2011-01-17 Thread Uli Kusterer
approach, it will also be much more elegant. You can provide a decent UI to your users (maybe with a popup menu to select what screen to configure for). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.lookandfeelcast.com

Re: NSNotFound

2011-01-17 Thread Uli Kusterer
ystem release, I don't think there is a way to reliably calculate an upper limit. If your application is likely to even vaguely get near the ballpark of NSIntegerMax / 2, you should probably look into implementing a virtual memory-like mechanism that swaps in/out objects from disk as ne

Re: NSNotFound

2011-01-18 Thread Uli Kusterer
On Jan 18, 2011, at 9:58 AM, Matt Gough wrote: > And as a side note, NSNotFound != kCFNotFound. > > This has caught me out a couple of times in code that is dealing with both NS > and CF objects. Whoo yeah! That was a fun afternoon ... Cheers, -- Uli Kusterer "The Witnesses

Re: Help on Cocoa Class references

2011-01-18 Thread Uli Kusterer
gs at this level. What are you trying to do? 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 the list. Contact

Re: Help on Cocoa Class references

2011-01-18 Thread Uli Kusterer
he behaviour is in many cases quite indeterministic. 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 the l

Re: Store a file vs create on the fly?

2011-01-20 Thread Uli Kusterer
lso, if you have comments or other localizable data in the template you can take advantage of the built-in localization facilities more easily. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list

Re: starting with Cocoa!

2011-01-22 Thread Uli Kusterer
;s also a thriving community of Mac programmers on Twitter, like @rentzsch, @violasong, @kevinhoctor, @AaronHillegass and others. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mai

Re: Cocoa Drawing vs. Quartz Drawing

2011-01-23 Thread Uli Kusterer
the CGxxx drawing stuff. It's changed now, with the introduction of UIBezierPath etc. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: How send XML data to document window?

2011-01-25 Thread Uli Kusterer
On 1/25/11 5:18 PM, McLaughlin, Michael P. wrote: Question: What is the recommended method for writing the changed XML to the document window for user feedback? I don't want to write the changed XML to a file and read it back in because most changes are only temporary. -setStringValue: ___

Re: Using NSWindow without NIB (XIB) file ?

2011-01-26 Thread Uli Kusterer
r example would probably be: NSButton* localView = [[NSButton alloc] initWithFrame: NSMakeRect(10,10,100,20)]; [[window contentView] addSubview: localView]; [localView release]; Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ht

Re: Programmatically create view and handle events

2011-01-27 Thread Uli Kusterer
er.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html) and then muddle around and keep crashing because they free objects owned by others etc. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.masters-of-the-void

Re: Programmatically create view and handle events

2011-01-27 Thread Uli Kusterer
On Jan 27, 2011, at 10:28 AM, Uli Kusterer wrote: > The thing to keep in mind when creating views programmatically is that > they're just normal objects, so you just create them, use addView to insert > them in the hierarchy on the screen That should of course be addSubview:. I

Re: Implementing a Find menu item like Safari?

2011-01-28 Thread Uli Kusterer
to be able to highlight the found text in a yellow box like > Safari does but again, I can't seem to find how to do that either. There's nothing generic, you'd have to do it by hand. But if you have an NSTextView (or can get at an NSTextField's field editor), you can use

Re: what are the disadvantages in keeping libraries and input files inside app bundle

2011-01-28 Thread Uli Kusterer
u may have to use @loader_path or the likes when building your libraries for everything to work and for the linker to find everything at startup. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list

Re: Add a view (xib) to a project

2011-01-31 Thread Uli Kusterer
u item in Xcode these days, and then opening and editing the resulting files. 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 p

Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Uli Kusterer
x windows isn't unintentionally modified. Of course, you will have to change some things, but at least this way you don't accidentally miss something. That way, you can at least partially run the old code next to the new one and compare their behaviours, to make sure they're ex

Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Uli Kusterer
t Carbon > based > Audio Unit views as well as Cocoa based Audio Unit views. Ouch. That sucks. Good luck with that! Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Getting the best frame rate for NSView drawing

2012-03-28 Thread Uli Kusterer
y is generally to put that in its own layer (or, if you must, layer-backed view). 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

<    1   2   3   4   5   6   7   8   9   >