Re: Xcode 5 & Obj-C++

2014-01-30 Thread Uli Kusterer
spatches method calls under the hood in this article: http://orangejuiceliberationfront.com/runtime-time/ The sample code included with it implements the ObjC approach of actually looking stuff up by name. -- Uli Kusterer "The Witnesses

Re: Xcode 5 & Obj-C++

2014-01-30 Thread Uli Kusterer
ent, as that will have the C++ file get a different offset for all following functions than the ObjC++ file. Also, since C++ overloads by type, You can't change the type of an ivar or parameter to a method or function, because then it will get a different name. I go into more detail about

Re: Xcode 5 & Obj-C++

2014-01-30 Thread Uli Kusterer
On 30 Jan 2014, at 15:09, Uli Kusterer wrote: > On 30 Jan 2014, at 01:28, Eric Wing wrote: >> - Often when comparing Obj-C vs. C++, method dispatch is one of the >> main culprits for the performance difference. But don't forget, Obj-C >> is a pure superset of C and y

Re: Legal Opinion on GCUndoManager

2014-02-01 Thread Uli Kusterer
your interception would stop happening, and your class would break. It sounds like a safer solution would be to get Apple to either make this method public and make a promise of sorts that they’ll keep it working, or to get them to not even call it on your class (I didn't quite get the det

Re: NSException category?

2014-02-06 Thread Uli Kusterer
Key). That sounds like a better approach than trying to modify (or replace) the userInfo in the original error, which might surprise you later on or lose you data if Apple ever decides to put stuff in the userInfo after all.. -- Uli Kusterer "The Witnesses of TeachText are everywhere...&qu

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread Uli Kusterer
ed into the field if you replace it with bullets (I hope you plan to use bullets, not asterisks)? What if the user selects the first character and replaces it with a new one? Have you thought about international character sets like Japanese or Hebrew? Cheers, -- Uli Kusterer “The Witnesses of Teac

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-10 Thread Uli Kusterer
-surf your password, e.g. if you're on a train with your MacBook, or at a cafe. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Determining available or installed RAM on iOS device?

2014-02-11 Thread Uli Kusterer
re is no swap file > and address space is always allocated out of physical RAM.) > > Failing that, is there at least API for determining how much RAM is installed > on the device? This isn't reported anywhere in the Settings app, as far as I > can tell. I think [NSProcessI

Re: OpenCL Basic Programming Question

2014-02-15 Thread Uli Kusterer
lve printf to anything that it can actually run on the GPU. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: Animating UIScrollView frame change without moving contents

2014-02-19 Thread Uli Kusterer
e:animated:), have you tried that one? I’ll see if I can look up what we’re doing later when I have some code in front of me. Did you say you were using layout constraints? This code is older, so I don’t think we’re using constraint-based layout there yet. Cheers, -- Uli Kus

Re: Disabling screen capture

2014-02-21 Thread Uli Kusterer
unning on* to capture this > content. Please forgive the length of what follows, but a little explanation > is necessary. I would expect NSWindow's -setSharingType: NSWindowSharingNone method to allow doing that. Have you tried that? -- Uli Kusterer "

Re: Disabling screen capture

2014-02-21 Thread Uli Kusterer
n that case, registering a global hotkey that overrides Cmd-Shift-3 and Cmd-Shift-4 should probably work … ? Though I'm confused, if you're in Kiosk mode, the user couldn't even copy a screenshot made. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___

Re: Disabling screen capture

2014-02-22 Thread Uli Kusterer
could maybe disassemble DVD Player.app and check how that does it … ? The OS definitely has the feature in DVD Player, iTunes and QuickTime Player. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev

Re: Disabling screen capture

2014-02-22 Thread Uli Kusterer
le’s discretion, but it’s worth getting in touch with Apple and trying to get that, if it solves your problem. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Disabling screen capture

2014-02-22 Thread Uli Kusterer
ers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://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: Disabling screen capture

2014-02-23 Thread Uli Kusterer
is OT to the list admins and consider the beam in your eye instead of the mote in others’? Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Disabling screen capture

2014-02-23 Thread Uli Kusterer
On 23 Feb 2014, at 11:20, Uli Kusterer wrote: > On 23 Feb 2014, at 06:09, dangerwillrobinsondan...@gmail.com wrote: >> There is no Cocoa to this. This is OT. >> Thread should end. > > What is it with you and this thread? Sorry, I shouldn’t have written it like that.

Re: NSNumber : method to return pointer to represented value

2014-02-23 Thread Uli Kusterer
affect your scheme, and could again. Graham is right. Similarly, in ye olde days, NSNumber numberWithBool: used to return NSNumbers containing the int 1 or 0. These days, they’re short-circuited to actually return kCFBooleanTrue and kCFBooleanFalse. It has changed, and might change agai

Re: deprecated BIGNUM replaced by what?

2014-02-26 Thread Uli Kusterer
9.2? > > There is vBigNum.h in Accelerate.framework, but this does not help with > arbitrary large numbers. NSDecimalNumber ? -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev

Re: Public API method naming for NSString * / const char * parameters

2014-03-03 Thread Uli Kusterer
lly constant, to wrap them in another object that allocates/releases them. -- Uli Kusterer "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: secure uitextfield is not secure

2014-03-06 Thread Uli Kusterer
ave quite a lot of fun at conferences/concerts whispering peoples’ passwords back to them from the seat behind them as I accidentally shoulder-surf them. For a mobile device, this is the wrong solution. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://z

Re: secure uitextfield is not secure

2014-03-06 Thread Uli Kusterer
swords is probably the best. That way, even if someone sees the password onscreen, it has already changed by the time an audience member might enter it. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Co

Re: Inherited Protocols

2014-03-06 Thread Uli Kusterer
On 06 Mar 2014, at 16:34, Mike Abdullah wrote: > This means any object adopting MyProtocol must implement all of the NSObject > protocol’s methods too. Useful thing to point out here: There are both a class and a protocol named 'NSObject'. In fact, the class conforms to the p

Re: Best way to composite/tile multiple CGImages to one image

2014-03-08 Thread Uli Kusterer
try speeding up compositing here until we’re blue, after all :-) Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera

Re: WebView pdf representation - div background colours AWOL

2014-03-11 Thread Uli Kusterer
d. Yeah, that's what I would have suggested. ISTR that PDF generation generally goes through the printing mechanism, so if you want to modify some options there, that's probably the way to go. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..

Re: bouncing icon in dock

2014-03-12 Thread Uli Kusterer
ted handling events. If your app launches fast, it won't bounce. That's a good thing. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: bouncing icon in dock

2014-03-12 Thread Uli Kusterer
On 12 Mar 2014, at 19:10, iseecolors wrote: > On Mar 12, 2014, at 10:35 AM, Uli Kusterer > wrote: > >> On 12 Mar 2014, at 18:15, iseecolors wrote: >>> I have “Animate opening applications” enabled, but my app is not bouncing >>> at launch (not even one boun

Re: Creating NSViewController with -init.

2014-03-25 Thread Uli Kusterer
in cases where it doesn’t crash right away. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: SQLite Question

2014-03-29 Thread Uli Kusterer
nd recommended a replacement for them. So, both are correct: Chris for the general case, and particularly the OP’s question of SQLite, Kyle for the cases he lists. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de

Re: Random crashes

2014-04-02 Thread Uli Kusterer
ght be going wrong? Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://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 moderat

Re: Accessing self in a C static function within an implementation definition

2014-04-07 Thread Uli Kusterer
ld probably do self.class in your macro, but functions aren't actually class members when they are in an @implementation block. The only special thing they can do is access instance variables of an object of that type. Cheers, -- Uli Kusterer "The Witnesses

Re: Excessive open gui graphics files on Mavericks

2014-04-09 Thread Uli Kusterer
rom the plist, but just moving the data from a hard disk over the bus can be a bottleneck, not even mentioning having to process each byte (and thus copying it again). Especially since that’s just to get the raw JPEG data, which is then decompressed and thus “copied” again. Cheers, -- Uli Kuste

Re: button cell highlight/state/type

2014-04-10 Thread Uli Kusterer
uations, and so far it's hard to avoid a mix-up between different types > due to the conflation of the highlight and the state. This answer I gave on Stack Overflow a while ago might help: http://stackoverflow.com/questions/6398989/nsbuttoncell-subclass-button-type-not-working/12935

Re: Differences in string handling for NSString and NSAttributedString

2014-05-05 Thread Uli Kusterer
the second: Original\nString\nAGoes\nAHere ^8 ^15^21^27 Only the end and the (already-completed) last insertion location changes. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de __

Re: Differences in string handling for NSString and NSAttributedString

2014-05-05 Thread Uli Kusterer
On 05 May 2014, at 18:50, Pax <45rpmli...@googlemail.com> wrote: > Oh bloody hell. I must be tired. That's so obvious - and I'm desperately > embarrassed for not taking care of this. Don't look in the archives, I've asked stupider questions :-) Cheers, -

Re: How to convert a UTF-8 byte offset into an NSString character offset?

2014-05-07 Thread Uli Kusterer
or convert selection offsets back to UTF8 offsets. The code hasn't shipped (or been tested much beyond myself using the app for a while), but if you're interested, contact me off-list and I'll send you a copy. Cheers, -- Uli Kusterer "The Witnesses of TeachText

Re: Help with Help

2014-05-07 Thread Uli Kusterer
web programming languages, i.e. I worked on a project where we ran the PHP command line tool over a bunch of PHP files and generated plain HTML files suitable for use with Apple Help from that. These days you'd probably go with Ruby or so. Cheers, -- Uli Kusterer "The

Re: NSData problems and viewing buffer data in hex

2014-05-07 Thread Uli Kusterer
will preserve the bytes as they were given and copy them out. If they're zeroes, then they're zeroes. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-d

Re: Resizing last column of NSTableView when it touches window border

2014-05-12 Thread Uli Kusterer
On 11 May 2014, at 11:59, Manoah F. Adams wrote: > P.S.: At what OS release did windows become resizable by grabbing their > edges? Doesn't that cause this same issue with all the controls that are > crammed into the edges of most windows? 10.7 Cheers, -- Uli Kusterer &qu

Re: mavericks style tabs

2014-05-18 Thread Uli Kusterer
. So you could let that take care of correctly doing display, focus-switching etc. and just create a control that draws the actual tabs to click at. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev m

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-22 Thread Uli Kusterer
it as a four char code and then search for that. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: NSURL from non-url NSString

2014-05-25 Thread Uli Kusterer
hat’s the commonality between the working but undesired “URL”s? One character and then all numbers? A single word without spaces? Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (

Re: NSURL from non-url NSString

2014-05-25 Thread Uli Kusterer
r.apple.com/library/mac/documentation/Foundation/Reference/NSDataDetector_Class/Reference/Reference.html Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: EXC_BAD_ACCESS in NSData

2014-05-26 Thread Uli Kusterer
t is bytes declared as, and what do you initialize it to? Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: EXC_BAD_ACCESS in NSData

2014-05-26 Thread Uli Kusterer
e-void.com/book5.htm) to make sure you have a correct understanding. Something still seems to be fuzzy in your head. Oh, and as Roland wrote, don’t forget to free() the pointer once you’re done with it. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de _

Re: EXC_BAD_ACCESS in NSData

2014-05-26 Thread Uli Kusterer
e type like uint32_t instead of unsigned int for portability, though), and then de-reference it to read. Regarding endian-swapping, that depends on the file format. If you wrote that file yourself, you don’t usually need to do any swapping. Cheers, -- Uli Kusterer “The Witnesses

Re: EXC_BAD_ACCESS in NSData

2014-05-28 Thread Uli Kusterer
On 26 May 2014, at 20:28, Charles Srstka wrote: > On May 26, 2014, at 7:43 PM, Uli Kusterer > wrote: >> Regarding endian-swapping, that depends on the file format. If you wrote >> that file yourself, you don’t usually need to do any swapping. > > That's true. For

Re: How to write a .icns file

2014-06-01 Thread Uli Kusterer
Something here is wrong: ICO == multi-representation BMP files used for icons on Windows icns == An MacOS 8-style serialized Collection Manager collection containing icon data in uncompressed, planar, PNG or JPEG2000 encodings. Cheers, -- Uli Kusterer “

Re: not debuggable?

2014-06-10 Thread Uli Kusterer
catching the exception. Have you tried wrapping the block's contents in an @try? The exception throw breakpoint *should* catch it, but maybe that helps things? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de

Re: Other app blocks mine from opening my documents

2014-06-10 Thread Uli Kusterer
other app that declares one for SQL files), then just internally map them all to your SQL document class? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Another app's UTI can break your app

2014-06-10 Thread Uli Kusterer
} > > return [super typeForContentsOfURL:url error:outError]; > } I suppose that this works should be mentioned in your bug. It means Apple could easily fix it by making the default implementation take a first stab at looking up the UTI from your Info.plist instead of from Launch Services

Re: title bar hit test?

2014-06-14 Thread Uli Kusterer
or resize it on a grid or something like that, there are NSWindow delegate methods that give you the rect AppKit would use for the new window size/position, where you can return a modified version of the rect. Any of these sound like what you’re doing? Cheers, -- Uli Kusterer “The Witnesses of

Re: NSScrollView skips rendering pages

2014-06-16 Thread Uli Kusterer
then send that NSImage to the main thread using performSelectorOnMainThread:... (and while you don't have the real image, draw a placeholder image, e.g. a checkerboard pattern like Maps.app and Photoshop do). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.d

Re: title bar hit test?

2014-06-16 Thread Uli Kusterer
so just implement a loop for dragging the window (nextEventMatchingMask: NSLeftMouseDraggedMask | NSLeftMouseUpMask) in a mouseDown: handler. There might be a better callback for doing this that'd let you avoid having to roll your own window-move loop, I'm not sure anymore. Cheers, --

Re: NSCoding vs NSSecureCoding

2014-06-17 Thread Uli Kusterer
ace that doesn’t have components (like the patterns). Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: app icon for Launchpad

2014-06-17 Thread Uli Kusterer
means it worked with an incomplete app). Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: FSPathMakeRef deprecated - replacement for LSSetItemAttribute?

2014-06-22 Thread Uli Kusterer
;fsRef, kLSRolesAll, kLSItemQuarantineProperties, NULL); Check out the headers for this call in Xcode 6, the comments there mention what call to use instead. Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev

Re: NSReleasePool issue

2014-06-22 Thread Uli Kusterer
not really possible with UIApplicationMain(). Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” http://zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSReleasePool issue

2014-06-22 Thread Uli Kusterer
> taken care by OS itself. Perhaps I will report this to Apple and see what > they have to say. Does anyone know where to report the issue? http://bugreport.apple.com Cheers, -- Uli Kusterer “The Witnesses of TeachText are everywhere...” ht

Re: Resolve alternative TLD

2014-07-03 Thread Uli Kusterer
So if this is a web view in your own app, it should just work. Have you tried 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

Re: Resolve alternative TLD

2014-07-03 Thread Uli Kusterer
the raw IP address to WebKit instead. 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: Resolve alternative TLD

2014-07-04 Thread Uli Kusterer
for a manual DNS resolution: Check if the URL is IPv4 or IPv6 raw IP, if not, resolve, then redirect to the raw URL. Also, I haven't looked into what has actually changed, but there have been lots of WebKit changes for iOS 8, so if you can require that, you might have additional API to so

Re: awakeFromNib multiple objects - all connected?

2014-07-11 Thread Uli Kusterer
ds loading as well, and then have it modify the load order and trigger awakeFromNib calls on objects actually instantiated by its owner and … it would be very messy, at the latest once you have a view controller inside the NIB of a view controller inside of the app’s main NIB or whatever. Cheer

Re: KVC, binding multiple properties, top level object

2014-07-14 Thread Uli Kusterer
wn size (or rather, a known range) and stays that way when saving to disk. If you can’t load the larger values in a 32-bit app, at least by loading them as a long long, you get the whole value and can put up an error to the user and refuse to load the file that way. Cheers, -- Uli Kusterer “The

Re: KVC, binding multiple properties, top level object

2014-07-14 Thread Uli Kusterer
cerned), it’s usually better to pay the overhead of creating a new NSNumber the moment you need it to wrap your number, instead of always having one even when you don’t need it. But keep in mind, premature optimization, root of all evil, yadda, yadda, yadda... Cheers, -- Uli Kusterer “The Witnes

Re: KVC, binding multiple properties, top level object

2014-07-17 Thread Uli Kusterer
ONG_LONG_MAX. Better than having to muck with NSNumbers. If only there were programming languages existed where NSNumber had built-in support and was optimized out in cases that don't need a real object ;-) Cheers, -- Uli Kusterer "The Witnesses of

Re: Modal Panel from Modal Window

2014-07-31 Thread Uli Kusterer
nly scheduled in default mode, so if you want them to work at another time, you need to explicitly schedule them for that mode, or they won't run until the window closes and the modal session ends. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.z

Re: iOS 8 beta 4 messes with my TextView

2014-07-31 Thread Uli Kusterer
, but whatever causes a re-layout (e.g. a "return to the phone call" bar popping up) could undo your frame change. You should *always* modify the constraints, intrinsic sizes etc. on an object instead of the frame when using auto-layout. Cheers, -- Uli Kusterer "The Witnesses of Teac

Re: start with OSX 5.1.1

2014-07-31 Thread Uli Kusterer
Xcode had together with this SDK and fixed it. By plugging a new SDK into the old Xcode, you won't get these fixes. So you can get subtle crashes, and other weirdness (newly-introduced attributes being ignored and causing linking to go wrong). I would do this only as a last resort.

Re: Auto-Layout Strangeness

2014-07-31 Thread Uli Kusterer
; ok and the drawRect is called. Stab in the dark: Is someone mucking with the layer behind the view? On Mac I'd say someone is calling setContent: or setDelegate: on the CALayer, but I don't think CGLayer on iOS has that. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywher

Re: Talking to other apps

2014-08-04 Thread Uli Kusterer
-ditch-workaround you could look into abusing NSUserDefaults if it's simple communication of tiny bobs of data. You can have a domain that is shared by two apps from the same manufacturer. Cheers, -- Uli Kusterer "The Witnesses of TeachText are every

Re: Talking to other apps

2014-08-04 Thread Uli Kusterer
On 04.08.2014, at 19:51, Scott Ribe wrote: > On Aug 4, 2014, at 11:47 AM, Uli Kusterer > wrote: > >> You can have a domain that is shared by two apps from the same manufacturer. > > Careful, I've had lots of problems with that--changes to defaults not being >

Re: How do I hide/show a status bar?

2014-08-07 Thread Uli Kusterer
ntent border stuff, so I don't know whether that can be animated as well, but I'd expect that you can use NSWindow's animator for that). Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _

Re: Cocoa window messages in app being ported from Carbon

2019-08-10 Thread Uli Kusterer via Cocoa-dev
indow and blocking the user from interacting with it. So this mixing is an ideal approach for slowly porting, but will not get you anything shippable until your UI is fully Carbon. Cheers, -- Uli Kusterer ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Cocoa window messages in app being ported from Carbon

2019-08-10 Thread Uli Kusterer via Cocoa-dev
On 10. Aug 2019, at 11:16, Uli Kusterer via Cocoa-dev wrote: > So this mixing is an ideal approach for slowly porting, but will not get you > anything shippable until your UI is fully Carbon. fully Cocoa. Sorry. ___ Cocoa-dev mailing list (Coc

Re: Cocoa window messages in app being ported from Carbon

2019-08-10 Thread Uli Kusterer via Cocoa-dev
nLoad() is basically the "turn a Carbon app into enough of a Cocoa app to run Cocoa code"-call, so shouldn't be needed in a fully Cocoa app. And your guess why NSApplicationMain didn't work was pretty close, I think. Cheers, -- Uli Kusterer http://www.zathras.de

Re: Cocoa window messages in app being ported from Carbon

2019-08-10 Thread Uli Kusterer via Cocoa-dev
You need to implement NSView -hitTest: to get mouseDown events. > > —Rob No, the default implementation does all you need and is perfectly fine. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de

Re: Cocoa window messages in app being ported from Carbon

2019-08-10 Thread Uli Kusterer via Cocoa-dev
ctangular shape or a built-in shadow through which clicks should pass to underlying views) or if you want to handle clicks that are actually destined for one of your sub views. A plain NSView will do all the correct hit-testing for subviews and itself by default. Cheers, -- Uli Kusterer "

Re: ARC

2019-08-25 Thread Uli Kusterer via Cocoa-dev
* for instance), then you might be doing something wrong there. Make sure you're properly using NSBridgingRetain() etc. (or the equivalent typecasts) and not mixing them up. That could cause ARC to think it owns another reference to an object and release it again. Cheers, -- Uli Kusterer &

Re: ARC

2019-08-27 Thread Uli Kusterer via Cocoa-dev
rs in your Build Scheme's settings. I think there's also a function objc_retain() or something like that, which is a *function* in the ObjC runtime that serves as the central bottleneck. You may have more luck breaking on that. Cheers, -- Uli Kusterer http://www.zathras.de "The W

Re: Cocoa-dev Digest, Vol 16, Issue 72

2019-08-27 Thread Uli Kusterer via Cocoa-dev
could be that your object is not strongly referenced and therefore immediately released. Cheers, -- Uli Kusterer http://www.zathras.de "The Witnesses of TeachText are everywhere..." ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Cocoa window messages in app being ported from Carbon

2019-08-30 Thread Uli Kusterer via Cocoa-dev
> On 12. Aug 2019, at 05:26, Kurt Bigler via Cocoa-dev > wrote: > > On 8/10/19 2:38:00 PM, Uli Kusterer wrote: >>> On 10. Aug 2019, at 23:02, Kurt Bigler wrote: >>> Currently if I call NSApplicationMain instead of my regular Carbon event >>> l

Re: NSLog displays inconsistent format for NSDate

2019-08-30 Thread Uli Kusterer via Cocoa-dev
heers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de > On 20. Aug 2019, at 21:50, Carl Hoefs via Cocoa-dev > wrote: > > When printing out an NSDate using NSLog from within Xcode I get: > > "Tue Aug 20 12:32:40 2019" &g

Re: Catalina scroll view issues

2020-01-06 Thread Uli Kusterer via Cocoa-dev
roperly somewhere? That could cause a view to have the wrong size and clip. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de > On 14. Dec 2019, at 15:16, Redler Eyal via Cocoa-dev > wrote: > > Hi All, > > I'm getting

Re: Status bar item icon is always black

2020-06-19 Thread Uli Kusterer via Cocoa-dev
coa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > h

Re: Invalidating UIImageView's image cache

2020-09-21 Thread Uli Kusterer via Cocoa-dev
to flush/update its cache! > > So, if there actually exists a kosher way to do this, I welcome any/all hints! I don't have a good answer, but I think this may be more that UIImage caches the images, not UIImageView. Maybe you can find something in UIImage's docs/headers? Cheers, -- Uli

Re: /Library/Application Support off limits?

2021-04-18 Thread Uli Kusterer via Cocoa-dev
or deleting their data. 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. Con

<    4   5   6   7   8   9