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
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
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
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
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
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
-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 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
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
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
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
"
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..."
___
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
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)
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
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
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.
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
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
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
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
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
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
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
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..
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
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
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
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
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
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
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
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
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
__
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,
-
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
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
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
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
. 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
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
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 (
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)
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
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
_
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
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
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
“
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
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.
}
>
> 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
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
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
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,
--
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
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
;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
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
> 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
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
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
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
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
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
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
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
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
, 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
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.
; 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
-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
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
>
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
_
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@
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
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
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
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
"
* 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
&
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
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
> 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
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
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
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
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
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
801 - 887 of 887 matches
Mail list logo