Re: Custom View drawn twice?

2008-03-03 Thread Uli Kusterer
Am 29.02.2008 um 20:55 schrieb Ben Lachman: [self displayIfNeededIgnoringOpacity]; Is there a particular reason why you're calling this method? Won't plain old -displayIfNeeded do the job? Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

[ANN] UKCrashReporter 0.3

2008-03-03 Thread Uli Kusterer
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 the moderators at cocoa-dev

Re: Custom View drawn twice?

2008-03-14 Thread Uli Kusterer
including a sample application that reproduces the issue. 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

Re: Custom View drawn twice?

2008-03-14 Thread Uli Kusterer
On 14.03.2008, at 13:11, Uli Kusterer wrote: On 14.03.2008, at 09:11, Ben Lachman wrote: I think I finally solved this while chatting with Wil Shipley earlier this evening. Wil mentioned sometimes needing to display from the opaque ancestor which is basically what I was trying to do

Re: What's the trick to eliminating 'halos' on buttons?

2008-03-14 Thread Uli Kusterer
itself can serve as an indicator, some other views have similar options. I wouldn't recommend it for checkboxes and pushbuttons, though... Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev

Re: Disable Exposé / Spaces / Dashboard

2008-03-15 Thread Uli Kusterer
. For a regular app that just has a presentation mode (like Keynote) users probably wouldn't appreciate you messing with their shortcuts. Also, I think there are APIs to turn on a Kiosk mode, have you tried whether any of these happen to also suppress Expose etc.? Cheers, -- Uli Kusterer

Re: A Tab after 4 SPACEs

2008-03-27 Thread Uli Kusterer
adheres to, or maybe it was the text storage) for the correct glyph for the character ' ' ? 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: A Tab after 4 SPACEs

2008-03-27 Thread Uli Kusterer
On 27.03.2008, at 10:08, Uli Kusterer wrote: But the glyph with number 0x20 is probably a completely different width than the glyph corresponding to a space in other languages. I meant in other *fonts*, not languages. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http

Re: setMenuVisible

2008-03-28 Thread Uli Kusterer
? All I have for you is more questions with this dearth of relevant information. 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

Re: Need for a creator code?

2008-04-02 Thread Uli Kusterer
. Otherwise, you're likely to choose a code that collides with another app's code, and then you break either your app or that other party's, which is not a nice thing to do. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: How to store NSRect as Core Data attribute?

2008-04-02 Thread Uli Kusterer
uses localized separators. So, since it always gives and takes periods as the decimal separator, I see no problem. Do you have a particular test case where it behaves differently? Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: [Moderator] Re: Need for a creator code?

2008-04-05 Thread Uli Kusterer
On 04.04.2008, at 20:31, Scott Anguish wrote: OK, time to shut this one down folks. We've been down this road far too many times in the past. Feel free to move this to the Mac-GUI-Dev group, where it's fine and on topic: http://groups.yahoo.com/group/mac-gui-dev/ Cheers, -- Uli

Re: Plugin Information

2008-04-14 Thread Uli Kusterer
having trouble with by giving us more information, in particular giving us a concrete example of what you're trying to do, plus maybe even code that illustrates the problem. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Window moved when dock appears.

2008-04-14 Thread Uli Kusterer
, and fixes the issue in a much more elegant way. There's also a special kiosk mode for full screen apps that may be used to implement behaviour many full screen apps need. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Detect phone number in NSString

2008-04-16 Thread Uli Kusterer
a public API, but in ye olde days this technology was called Apple Data Detectors, maybe that'll help you google something up? Otherwise, see what Apple calls it in the Mail.app docs, maybe that term will bring up a related API. Cheers, -- Uli Kusterer The Witnesses of TeachText

Re: 1-bit NSBitmapImageRep?

2008-04-17 Thread Uli Kusterer
need this for? Maybe you could just use an NSBezierPath instead? That essentially consists of on/off areas just the same, and can be applied as a clipping path to all sorts of objects. When you need to draw it, you can still draw it in black or whatever. Cheers, -- Uli Kusterer

Re: Should a Method set NSError* to nil when No Error?

2008-04-19 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-dev-admins

Re: NSString memory management question

2008-04-22 Thread Uli Kusterer
that. But apart from that, the rules in the CoreFoundation docs apply, so assuming you're using a CFStringCreateXXX call, yes, you should release this string. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Uli Kusterer
-bit quantities. So, it's not really a good idea to have resources of several megabytes in size. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Uli Kusterer
could duplicate the file, and then both files would be associated with the same store entry... Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-24 Thread Uli Kusterer
to be on the name list and a few other lists. Note that the 2727 limit is a well- known bug, so to say, I don't think Apple has documented it anywhere. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-24 Thread Uli Kusterer
with. So, for all practical purposes resource FORKS are limited by the format of the resource FILE. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: QTMovie grabing while playback

2008-04-24 Thread Uli Kusterer
some avenues to explore. HTH. 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

Re: Application Launch (or doesn't Launch as such)

2008-04-24 Thread Uli Kusterer
set to 'Release' instead of 'Debug', it may try to run your app, stop on a breakpoint, and get royally confused and lobotomized by the missing debug symbols and stuff. That happened to me in the early Xcode 3 days. Interestingly, it hasn't happened in a while... Cheers, -- Uli Kusterer

Re: Cache Class review (low priority)

2008-05-02 Thread Uli Kusterer
, in which case this doesn't apply. 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

Re: Loading a .nib?

2008-05-02 Thread Uli Kusterer
Am 03.05.2008 um 00:38 schrieb J. Todd Slack: But that is Objective-C, I need to do it from a .c file. No you don't. Objective C is a superset of C, so if you want to us Objective C, just change the file into a .m file. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere

Re: Loading a .nib?

2008-05-03 Thread Uli Kusterer
app. 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 the moderators

Re: Loading a .nib?

2008-05-03 Thread Uli Kusterer
in Leopard, but I haven't checked yet... 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

Re: scriptability of button in interface?

2008-05-03 Thread Uli Kusterer
NSScriptCommand where you need to add your own commands that don't have objects associated with them. 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: HTTP Headers

2008-05-03 Thread Uli Kusterer
as the value. Of course that means that you can't easily have several headers with the same name (like it'd be done for an SMTP server), but for most uses it works. There might even be sample code for doing HTTP GET or POST requests at http://cocoadev.com Cheers, -- Uli Kusterer

Re: Proxy Window of another

2008-05-03 Thread Uli Kusterer
to a different location, can have a different toolbar collapse state, can be a different size etc. 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: Proxy Window of another

2008-05-04 Thread Uli Kusterer
to NSWindows. 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 the moderators

Re: Did I reinvent the wheel?

2008-05-10 Thread Uli Kusterer
management and leaks. It doesn't address Cocoa and CoreFoundation memory rules, but it explains the inner workings of memory, which should be of some help in making it more obvious why Xcode can't detect leaks. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Capture screenshot

2008-05-14 Thread Uli Kusterer
could also look into OpenGL, there might be a way to read the pixels from the graphics card. 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: Bypassing Interface Builder

2008-05-14 Thread Uli Kusterer
several NIBs and assemble them at runtime (that's what System Preferences does, for example). 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: Bypassing Interface Builder

2008-05-14 Thread Uli Kusterer
into doing classes than one-on-one tutoring, though they obviously do the one-on-one stuff as part of their classes). Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev

Re: Bypassing Interface Builder

2008-05-15 Thread Uli Kusterer
the NSWindowController or NSViewController or NSDocument that loaded the corresponding NIB, or if you're using NSNibLoading directly, it's whatever object you passed in as the owner. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: cocoa mentoring (was Re: Bypassing Interface Builder)

2008-05-15 Thread Uli Kusterer
Am 15.05.2008 um 15:36 schrieb Torsten Curdt: On May 15, 2008, at 07:55, Uli Kusterer wrote: Am 15.05.2008 um 00:53 schrieb colo: Well. Huh. After reading all of that. I wish there was sorta mentor program. Ah but where would be the fun in that. Any way thats off topic

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Uli Kusterer
in Objective-C. Let me take this opportunity to once again shamelessly plug my C tutorial: http://masters-of-the-void.com which covers most of this (it doesn't cover pointers to functions and bitwise operations), especially memory management and pointers. Cheers, -- Uli Kusterer

Re: Bypassing Interface Builder

2008-05-15 Thread Uli Kusterer
shared application instance (represented by File's Owner) somehow know about all properties of all objects in all of my classes? That would be great if it does, I have just never seen it written. No. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: The challenge for Cocoa's on-line documentation

2008-05-17 Thread Uli Kusterer
home the point that this view consists of different parts that can be activated and deactivated at will, without mentioning any of the flags and thus risking to become outdated as soon as someone adds (or, theoretically, removes) one of these flags. Cheers, -- Uli Kusterer The Witnesses

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-17 Thread Uli Kusterer
was accidentally messing with views and windows from another thread than the main thread. That was what created the inconsistency that later caused this exception on a completely unrelated thread. You wouldn't perhaps be messing with the GUI from the wrong thread by accident? Cheers, -- Uli

Re: Conditionally modifying NIBs?

2008-05-18 Thread Uli Kusterer
to show/hide non-applicable parts and having the window magically re- layout in response to that. Though in that case I often just embed the views in an NSView that have to be shown/hidden together, without loading them from separate NIBs. Cheers, -- Uli Kusterer The Witnesses of TeachText

Re: [OT] generating API docs

2008-05-19 Thread Uli Kusterer
whether they can cope with ObjC 2.0 constructs etc. 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: Cocoa Training....

2008-05-21 Thread Uli Kusterer
that before going to BNR. If you then find it wasn't sufficient, you can still go to BNR. But of course you'll then have the book twice ... so in the worst case trying the book can get more costly than not trying it :-/ Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http

Re: Trying to understand -- please help...

2008-05-21 Thread Uli Kusterer
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 the moderators at cocoa

Re: Trying to understand -- please help...

2008-05-21 Thread Uli Kusterer
the memory management rules (because usually people forget one or another rule). 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

Re: Quit iTunes

2008-05-25 Thread Uli Kusterer
Am 24.05.2008 um 17:49 schrieb Mr. Gecko: How would I quit iTunes. There is a way to launch it with NSWorkspace but how about quit? You could use the scripting bridge. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Cocoa Classes from C++?

2008-05-28 Thread Uli Kusterer
I allocate the C++ object; One trick I've seen here is to have a #ifdef __cplusplus check there, and then to typedef the C++ types to void* for pure-C or pure- ObjC callers. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: CGContextSetRGBFillColor() off by one?

2008-05-29 Thread Uli Kusterer
? Have you tried switching to a different profile to see whether the differences ... errr... differ? Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: CGContextSetRGBFillColor() off by one?

2008-05-29 Thread Uli Kusterer
change the colors at some point. You'll have to investigate yourself whether you're providing the wrong color space at some point, or whether switching to a different color profile in system preferences changes anything, or whether it's something else. Cheers, -- Uli Kusterer The Witnesses

Re: Drag-to-poof and tables

2008-06-03 Thread Uli Kusterer
, but in this case it might be worth considering that one could just implement one's own dragging code. DnD is mainly an architecture for cross-application and cross-window dragging. If you need neither, it's not too difficult to do your own drawing during mouse tracking instead. Cheers, -- Uli

Re: Hillegass book memory question

2008-06-03 Thread Uli Kusterer
objects that are singletons used throughout the app's life. Though I usually add a comment next to such lines: // intentional 'leak': singleton. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa

Re: DirWatch

2008-06-05 Thread Uli Kusterer
. Or was that when Finder started using 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

Re: Converting a CFImageRef to a NSImage

2008-06-06 Thread Uli Kusterer
compile-time checks whether the right frameworks are linked to, or so. 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

Re: Cocoa n00b frustrations

2008-06-07 Thread Uli Kusterer
click to delete these stale connections. 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

Re: Cocoa n00b frustrations

2008-06-07 Thread Uli Kusterer
. 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 the moderators at cocoa-dev

Re: Cocoa n00b frustrations

2008-06-07 Thread Uli Kusterer
Am 07.06.2008 um 21:05 schrieb Uli Kusterer: You sure it went bad? If you have IBOutlets and rename them, IB sometimes keeps entries for these connections in the NIB file. It does this since you may be copy-and-pasting in your source files, and it wouldn't want to trash that connection just

Re: Cocoa n00b frustrations

2008-06-07 Thread Uli Kusterer
Am 07.06.2008 um 20:29 schrieb Andy Lee: NSLog( @Current input source '%s', [ name UTF8String ] ); Urrk. bad. You can't expect %s to be UTF8. Instead, do: NSLog(@Current input source '%@', name ); Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Converting a MenuRef to a NSMenu

2008-06-08 Thread Uli Kusterer
isn't really possible. You can, however, read the MenuRef's item list and (manually) create an NSMenu that looks the same. What exactly do you need this for? I couldn't find the original post your message seems to be referring to. Cheers, -- Uli Kusterer The Witnesses of TeachText

Re: Hillegass Book 3rd ed. ScreenShots differ?

2008-06-08 Thread Uli Kusterer
a ruckus on that. I doubt Aaron forgot to get that cleared before the release. They've given similar permissions to other people. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev

Re: When is a document moved or renamed?

2008-06-15 Thread Uli Kusterer
the references to your files. Aliases both follow files when they're just moved, as well as have the ability to re-discover a file if it has been recreated. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: iMovie HD like splash screen

2008-06-17 Thread Uli Kusterer
is grey with rounded corners, how to do that? Use NSWindow's new -setContentBorderThickness:forEdge: method. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev

Re: Programatically placing panels inside a window

2008-06-17 Thread Uli Kusterer
I do something like that programatically? Check out NSTabView (especially the properties that let you make it borderless and not show its tabs) and NSViewController. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: launching finder with optionschi

2008-06-17 Thread Uli Kusterer
folders in a new window is on, and at least do it in that case. 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

Re: Newbie interface questions - multiple modal windows

2008-06-17 Thread Uli Kusterer
still need 10.4 support. I'm planning on doing a version that is modeled after NSViewController, but can't give an ETA. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa

Re: Newbie interface questions - multiple modal windows

2008-06-18 Thread Uli Kusterer
. Similarly, there are various kiosk modes, ways of hiding the menu bar (this kinda overlaps, but obviously not quite), and other conventions. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa

Re: disable manual resizing of NSWindow

2008-06-18 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-dev

Re: [Q] Is there a NSPathController-like custom controllerl for pre-MacOS X 10.5?

2008-06-25 Thread Uli Kusterer
. If you mean an NSPathControl (AFAIK there's no controller for paths, not that I'd know what that would do), then there's a class by me that serves a similar puprose: http://www.zathras.de/angelweb/sourcecode.htm#UKFilePathView Cheers, -- Uli Kusterer The Witnesses of TeachText

Re: What does 'thread safe' mean?

2008-06-27 Thread Uli Kusterer
, but then it crashes reliably on every other Mac, just not on your development Mac. -- 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

Re: NSImageView and getting change events

2008-06-27 Thread Uli Kusterer
an own class. I think the NSImageView sends its action to its target when its image gets changed that way. Have you tried that? Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing

Re: NSString uppercaseString

2008-06-27 Thread Uli Kusterer
, it is NOT guaranteed to be autoreleased, it is just not owned by you. Please be careful about spreading inaccuracies not supported by the documentation. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa

Re: c++ exceptions in objective c call stack

2008-07-04 Thread Uli Kusterer
the 32-bit runtime on the Mac for compatibility reasons. So the switch would be setting the architecture to 64-bit and removing the 32-bit architecture. But of course then your app won't run on Macs with 32-bit CPUs anymore. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere

Re: Layer Backed Views and CoreAnimation neither animate nor stay in place

2008-07-05 Thread Uli Kusterer
far, whenever a new layer is created, it is inserted in the front. The only way I've found to fix it is to set the zPosition of each view's layer manually. However, luckily that seems to work :-) Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: c++ exceptions in objective c call stack

2008-07-05 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-dev-admins

Re: c++ exceptions in objective c call stack

2008-07-05 Thread Uli Kusterer
On 05.07.2008, at 19:52, Clark Cox wrote: If C++ code behaves oddly in the presence of unknown exceptions, then that C++ code is broken. :) Isn't that how code always is? ;-) Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Toolbar code in separate Controller?

2008-07-05 Thread Uli Kusterer
responder in the responder chain, beginning at the first responder. Have you inserted your toolbar controller in the responder chain so it actually gets asked whether these methods should be enabled? Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Why can't I name a property `tag'?

2008-07-10 Thread Uli Kusterer
On 10.07.2008, at 21:29, Michael Ash wrote: I can't find any particular pattern to it, but it's clear that it's a bug, not a deliberate omission. I recommend you file a bug with Apple. Your warnings kinda remind me of type promotion. Ints get promoted to floats, etc. Cheers, -- Uli

Converting Windows RC to NIBs (was Re: Creating and App menu from Scratch)

2008-07-16 Thread Uli Kusterer
might as well go and recreate the UI and let IB's snap-to-guidelines do the job of initial layout. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Relaunch Finder (without AppleScript)

2008-07-16 Thread Uli Kusterer
, and is of class/type kCoreEventClass/kAEQuitApplication. Check the result, though, Finder may refuse to quit if it's busy, like aforementioned copy process. To launch Finder again after that, use NSWorkspace. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http

Re: notification when app is moved

2008-07-17 Thread Uli Kusterer
its location, so you might get the old path back. But I guess since the kqueue tells you where it got moved, you could deduce the path anyway. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa

Re: notification when app is moved

2008-07-17 Thread Uli Kusterer
On 17.07.2008, at 23:13, Jean-Daniel Dupas wrote: Correct me if I'm wrong, but kqueue will not work if you move a folder that contains the applications (and not the app directly). You're right, completely forgot about that. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere

Re: notification when app is moved

2008-07-18 Thread Uli Kusterer
to move an app while it is running. The more people file bugs on an issue, the more likely it is that Apple will actually fix them. And this is a Mac. Users shouldn'thave to think about geeky things like that, the software should just do the right thing. Cheers, -- Uli Kusterer

Re: WebView load background color.

2008-07-19 Thread Uli Kusterer
on a mailing list, or your message will end up sorted into the original thread, and people who use threaded view won't see it unless they read the original thread. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: substitute class at runtime?

2008-07-19 Thread Uli Kusterer
your web browser unless you want to cope with people creating NSXMLElements for you to get your browser to crash... :-) Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa

Re: How to get cursor text from a Mac window

2008-07-19 Thread Uli Kusterer
(See NSUIElement and LSBGOnly) to present these windows. 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

Re: +defaultAnimationForKey vs. -animationForKey

2008-07-19 Thread Uli Kusterer
management. In threaded newsreaders, this will just get hidden under that thread's headline, and nobody will ever see your message who would know the answer. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: NSMutableDictionary autorelease chrashes application

2008-07-19 Thread Uli Kusterer
to a pool, however, leads to stale pointers and memory bugs, and may even lead to memory corruption and/or crashes. So I think I'll take an analogy hobbling in on its last leg over a label that leads to wrong code any day. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere

Re: NSMutableDictionary autorelease chrashes application

2008-07-19 Thread Uli Kusterer
. Similar results can also be obtained by forgetting to provide an -initWithCoder: in a subclass of a class that is intended to be instantiated from a coder. If you want a fun description of problems like these, look up James Dempsey's Designated Initializer song on YouTube. Cheers, -- Uli

Re: draw string with ellipsis

2008-07-28 Thread Uli Kusterer
On 28.07.2008, at 08:23, Vitaly Ovchinnikov wrote: Thanks, exactly what I need. Btw, is there any easy way to center this line vertically? Or I need to measure it's height and offset it vertically myself? NSParagraphStyle -setAlignment: ? Cheers, -- Uli Kusterer The Witnesses of TeachText

Re: draw string with ellipsis

2008-07-28 Thread Uli Kusterer
On 28.07.2008, at 17:22, Vitaly Ovchinnikov wrote: This one aligns string horizontally, I need vertical alignment. Well, OK, will measure it's height and center it myself. Oh, sorry. Wasn't quite awake when I wrote that, apparently. Yeah, I think vertical is up to you. Cheers, -- Uli

Re: Properties and memory management

2008-08-05 Thread Uli Kusterer
will be NIL. 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 the moderators

Re: Properties and memory management

2008-08-05 Thread Uli Kusterer
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. Contact the moderators

Re: Properties and memory management

2008-08-05 Thread Uli Kusterer
On 05.08.2008, at 22:24, Marcel Weiher wrote: On Aug 5, 2008, at 2:57 , Uli Kusterer wrote: You may fire off observer methods too, which is probably undesirable. Lucky then, that I adopted GNUstep-style ASSIGN() and DESTROY() macros for these purposes, and since most of my code still

Re: Cocoa Dev Style: Using Class versus Object Methods

2008-08-08 Thread Uli Kusterer
easier. This is simply wrong. Ignore that. A counterexample would be +alloc. Better read Apple's memory management rules if you want to know the correct story. Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

Re: Using @selector()

2008-08-09 Thread Uli Kusterer
at runtime ... which I guess only compiler and plug-in nuts like me do, so forget what I said ... :-) Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Custom URL Handling

2008-08-09 Thread Uli Kusterer
to do this is. I don't see any specific information about this in Apple's documentation. Hope this helps a bit. If anyone knows better, please correct me. I haven't had to do that yet, that's just stuff I remember having read in places. Cheers, -- Uli Kusterer The Witnesses of TeachText

Re: Custom URL Handling

2008-08-09 Thread Uli Kusterer
. 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 the moderators at cocoa-dev

Re: including a cocoa bundle in a carbon app

2008-08-10 Thread Uli Kusterer
a path they expect to be loaded at (installation path setting), while bundles as they're used for plugins generally don't. Did you perhaps mix those up? Alternately, are you perhaps mixing debug and release builds? Anything not 100% homogeneous in there? Cheers, -- Uli Kusterer The Witnesses

Re: URL Text Color in NSTextView

2008-08-11 Thread Uli Kusterer
to specify the attributes used for links. Those override whatever you specify in the attributed string, AFAIK. Ah, here it is : -setLinkTextAttributes: Cheers, -- Uli Kusterer The Witnesses of TeachText are everywhere... http://www.zathras.de

  1   2   3   4   5   6   7   8   9   >