Jens,
> If you're using CoreData I'm not sure if you'll be able to fix your database
> schema, since presumably CoreData manages it and not you. So I'm not sure how
> you'd work around the problem. Good luck!
In fact, the Macports search engine is not, so I guess we’ll figure out a way
to fix
Folks,
the sqlite version installed on OS X machines has been bumped to 3.8.x in OS X
10.10. This apparently had the unfortunate side (or collateral) effect of
plummeting performance of some requests (specifically, some Macports related
database operations now take forever while they were fairl
Scott,
> No, but it's great to device to access data, perhaps even bits pulled out
> from a huge pile, and preferably pulled out extremely quickly.
> And, anyway, why shouldn't it be a huge database machine???
I meant, it is not designed to serve as a database machine. I can’t possibly
imagine
> Thanks for this remainder, but I think we all already know that 620k is
> enough for anyone…
Frankly, Jean-Daniel, I don’t want to get involved in a pointless bickering,
but all I need on a phone was almost already running twenty-five years ago on
my first Atari 520ST with, yes, 512 KiB of RA
Mostly, this is not going to change anything. You will see your code size
increase, because unless you use PIC, you’ll have to store 64-bit addresses
instead of 32. There will be more cache misses as your memory space becomes
sparse. It will surely run faster, but not because the bus size has be
Le 31 juil. 2013 à 22:38, Greg Parker a écrit :
> Not necessarily. If you have long string and you want to clear it and re-fill
> it with another long string, then it may be faster to use
> -deleteCharactersInRange: in order to avoid memory re-allocation overhead.
> But that possibility depend
Greg,
thanks for diverting some of your time testing this. As someone already
commented, the results are somehow consistent with “common sense”, whatever
that means (cf. below).
> ARC and non-ARC scores are the same within measurement noise, except for
> [NSMutableString string] where ARC can
Thanks to all for answering,
> Why would there be? Your just asking for a mutable copy of an empty string.
> It should be equivalent to [[NSMutableString alloc] initWithString:@« »]
But much slower I expect, since it creates a NSString, takes a mutable copy,
then implicitly releases the consta
Le 31 juil. 2013 à 20:15, Mike Abdullah a écrit :
>> I apologize if this question looks stupid or contrived. Here it is: is it
>> permissible to use [@“” mutableCopy] to initialize (or reset) a
>> NSMutableString instead of the more classical [[NSMutableString alloc] init]?
>
> Yes.
Thanks!
Folks,
I apologize if this question looks stupid or contrived. Here it is: is it
permissible to use [@“” mutableCopy] to initialize (or reset) a NSMutableString
instead of the more classical [[NSMutableString alloc] init]?
Thanks a lot!
Vincent
___
Hi and thanks a lot to anybody!
I posted some answer before, but since it included a screenshot I’m afraid it
didn’t make it through. I was just trying to show that when I access an iVar of
‘self’ in the C-function (e.g. self -> _egg), Xcode autocompletion pop-up shows
the iVars list, but each
Rick,
thanks for answering, because what I found on the Internet seems contradictory.
Some say that if the C function is placed inside the implementation block, then
it can access attributes as if it were a true Obj-C method; some say otherwise.
So it’s a bit difficult to find a definitive answ
Hi everybody,
I have a very simple question: if I embed a C-function (more precisely, a
callback from an external C-library) in an Obj-C object, can I expect this
function to behave like a regular method? I.e. can it freely access ‘self’ and
other attributes?
Thanks a lot!
Vincent
Kyle,
> Following that line of thought, how many of you actually think griping
> on this list is going to accomplish anything other than filling up
> everyone else's inboxes from what would otherwise be one of the
> remaining useful channels?
While I agree with you, I think it is also essential t
> On 21 juil. 2013, at 17:04, "Eric E. Dolecki" wrote:
>
> Outside of doing that, I'm not sure why things would be down for such an
> extended period of time.
The fact that the main page is still accessible means the server did not crash.
Could be the database with all developers ID, profiles…
Hi!
Sorry for this late answer, I was a bit swamped lately.
> NSData wouldn't let you, but NSMutableData would, with methods like
> appendBytes:length:, appendData:, increaseLengthBy:, etc. The underlying
> buffer might have to move around if it cannot be extended in place, just as
> it would
Hi again,
when I compile my storyboard, I get a bunch of these warnings, one for each
subview. For example:
Explo3D/Explo3D/Base.lproj/Main_iPhone.storyboard Frame for "Label - Label"
will be different at run time.
Explo3D/Explo3D/Base.lproj/Main_iPhone.storyboard Horizontal position will be
1
On 8 juil. 2013, at 18:04, Jens Alfke wrote:
> On Jul 7, 2013, at 1:37 PM, Frederick Bartram wrote:
>
>> Have you tried using NSData to store C-arrays?
No, since my initial problem was to be able to extend the buffer as the number
of primitive read grew. NSData would not do that. Alternatively
Hi!
You’re right to point that CFtypes exist: I often overlook these and that’s
stupid of me.
> Why? What's wrong with a simple array?
Nothing. Well, at first, I was looking for a self expanding array, given that I
didn’t know the size beforehand.
> (Or, I would argue, though it's not a popul
Quincey,
> Each NSString has at least 4 bytes of overhead (the 'isa' pointer); each
> character is UTF-16; each object is a multiple of 16 bytes. Your values may
> not fit in the remaining 12 bytes of the smallest object (an input format
> something like '0.xe-nn', which isn't an unlikely forma
Hi!
Thanks to all for your quick and kind answers.
> You're comparing apples to oranges.
That’s a nice way of putting it!
> You were storing strings for each numeric value, now you're storing doubles.
Actually just floats, in order to save space.
> You could have tried NSNumber objects inste
Hi everybody,
the tiny iOS app I work on currently begins by decoding 3D data in the form of
a TIN: vertices, normals then triangles. There are about 200 000 of the two
formers, and 400 000 of the latters (needless to say, at a later stage, I am
going to improve speed by using some kind of tili
David,
> Yes, […]
Thanks for your quick answer and your kindness, as usual! Then something is
wrong with my setup, I’ll investigate further.
Have a great day!
Vincent
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin r
David,
BTW, is it possible to add subviews to a CAEAGLLayer backed view? I have been
fighting all day to show a progress indicator atop this backed view, in vain.
Thanks!
Vincent
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
Hi David,
I made it work eventually. I just figured out both the frame buffer and the
render buffer must be bound before drawing. Now I have a fine blue screen, so I
guess I can go ahead after a good sleep. :)
> Honestly my first question would be why not use GLKit (which the Xcode OpenGL
> ES
On 2 juil. 2013, at 17:54, Vincent Habchi wrote:
> Uh, I just realized I had overlooked the call to EAGLContext
> presentRenderbuffer. It should work better when I add it.
It doesn’t work even with that call added. I don’t really grasp when the
CAEAGLLayer gets somehow hooked to the
Uh, I just realized I had overlooked the call to EAGLContext
presentRenderbuffer. It should work better when I add it.
Sorry for the noise, but this is a bit confusing at start!
Vincent
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
Hi folks,
I am trying to develop a demo application (DEM viewer) on iOS for educational
purposes. I am fairly fluent with OpenGL but this my first try at an iOS app (I
usually do OS X development). My problem is that albeit I seem to have abided
by all terms of what’s described in the ‘Drawing
Hi Rick,
> Where to go for questions about the Accelerate Framework?
I have a fairly good knowledge of the Accelerate framework and its opensource
counterpart, Atlas. If I might be of any help, don’t hesitate.
Vincent
___
Cocoa-dev mailing list (Co
On 21 mars 2013, at 16:45, Andreas Grosam wrote:
>
> On 21.03.2013, at 15:05, Luca Ciciriello wrote:
>
>> Is it normal that no breakpoint is reached (disabled?) when the Link-Time
>> Optimization is enabled?
>>
>> Luca.
>
> This is probably the effect of the optimizer: there is simply no
>
On 7 janv. 2013, at 20:22, Greg Parker wrote:
> IEEE 754 guarantees exact results for + - * / sqrt. Everything else is
> implementation-defined.
That’s why I suggested a mixed approach combining exact table lookup and a
refinement via only multiplications and divisions. It should give, if not
On 5 janv. 2013, at 09:02, Rick Mann wrote:
> Well, that shouldn't matter. If a "double" is a double, then even if it can't
> do it in hardware, it should be done in software, and the result should be
> the same.
Of course. But, if I am not mistaken, the IEEE norm does not define by itself
th
On 5 janv. 2013, at 03:38, Rick Mann wrote:
> So, we've run into an issue in our physics simulation where the floating
> point results from cos() (and probably other intrinsics) are different
> between Apple ARM 5 and Apple ARM 6 processors.
This is not much of a surprise. Afaik, only 6 inclu
Eve,
> When you have alpha transparency you can either blend the aerial tiles into
> the map view or blend the entire map view into the aerial tiles. Either way,
> I think, you can get something that looks good. Semitransparent overlays
> consisted of aerial tiles might actually work, and it
Hi Eve,
> Use overlays. Look into ClassicMap:
> https://github.com/kishikawakatsumi/ClassicMap which is doing about the same
> thing using likely illegally obtained Google tiles.
I’ll have a look. It is actually displaying maps *over* a cartographic
background (and not some cartographic layer
Andrea,
>if (self = [super initWithContentRect: contentRect
>styleMask: NSBorderlessWindowMask
> backing: bufferingType
>defer: flag])
Sei sicuro bufferingType è uguale a NSBackingStoreBuffere
Hi folks,
for a demo app, think of it as some kind of “geographic mashup”, I’d like to
display a MKMapView on an aerial photographic background that I fetch from a
remote server, and be able to vary its transparency. Before diving into it, is
there any other option except embedding the MKMapVie
Le 31 oct. 2012 à 16:17, lbland a écrit :
> hi-
>
> On Oct 31, 2012, at 10:41 AM, "Gerriet M. Denkmann"
> wrote:
>
>> NSString *s = @"ร่วมรส";
>
> Not supported. The compiler should be issuing a warning. You need to escape
> the characters using a UTF encoding.
I never had any problem
> I'm handling some mouse dragging tasks modally by implementing my own modal
> event loop using [NSApp nextEventMatchingMask:untilDate:inMode:dequeue:].
>
> I'm wondering what is the usual correct thing to pass for the 'untilDate'
> parameter. For a long time I've been using [NSDate distantFutu
On 30 oct. 2012, at 07:25, Vincent Habchi wrote:
> http://www.eerolanguage.org. I maintain the package on MacPorts, if you want
> to have a try.
Should be http://eerolanguage.org. There is no leading www.
V.
___
Cocoa-dev mailing list (Coc
On 30 oct. 2012, at 01:24, Jens Alfke wrote:
> There was a pretty serious proposal floated on objc-language earlier this
> year (by a non-Apple person), but as far as I can tell it devolved into a
> bunch of arguing over details, and didn’t go anywhere. (And further
> discussion thereof should
Mike:
> How are those accented characters represented in your HTML?
Thanks for pointing this. It turns out, after examination, that the accented
chars are already provided in UTF-8, and that only & and ' need to be
translated. Strange. I was sure I saw other escapes around on some contents
bef
Roland,
> Someone suggested a clip mask, that might work if I can't get the paths to
> go; I feel for some reason that a clip mask would be less efficient and this
> should be totally do-able with paths and paths are what I naturally have
> here.
I am not sure if would be less efficient. If I
> That’s blatant. […]
I meant obvious. I just read the use of “blatant” for “obvious” was incorrect.
My bad.
Vincent
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact t
Le 29 oct. 2012 à 15:30, glenn andreas a écrit :
> Given that there are also decimal (DD;) and hexadecimal escape sequences
> () in HTML, trying to support those through the use of a dictionary
> of sequence -> replacement is going to be impractical.
Hopefully, I have only to address
Le 29 oct. 2012 à 15:26, Roland King a écrit :
> Doesn't help I'm afraid. If I only have that one, single, path, the even-odd
> rule returns odd inside the path/circle so it's inside and the non-zero
> returns either 1 or -1 depending on the order of the control points so either
> way so that'
Le 29 oct. 2012 à 15:00, Kyle Sluder a écrit :
> On Oct 29, 2012, at 6:55 AM, Vincent Habchi wrote:
>
> Actually, it's not. From the docs:
>
>> Note: Currently, only the standard predefined entities are supported;
>> passing NULL for entitiesDictionary is suffici
Le 29 oct. 2012 à 14:34, Mike Abdullah a écrit :
> Well, you can ask CFXMLCreateStringByUnescapingEntities() to do this on OS X,
> although if I recall all the CFXML functions have now sadly been deprecated.
> The source code for it should still be available if you search around.
I wasn’t awar
Le 29 oct. 2012 à 13:23, Andreas Grosam a écrit :
> T$ ls -al
> total 816
> drwx-- 10 me staff 340 29 Okt 13:15 .
Did you try with your . directory having permissions drwxr-xr-x?
V.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Le 29 oct. 2012 à 12:53, Roland King a écrit :
> Does CFURLCreateStringByReplacingPercentEscapes() not do this for you? I
> often use it going the other way from text to escaped text, not just for
> URLs.
AFAIK, CFURLCreateStringByReplacingPercentEscapes() substitues special chars
for % in U
Le 29 oct. 2012 à 12:34, Mike Abdullah a écrit :
> The code is a fairly inefficient to start with, but no, it's not going to
> leak.
Thanks. I am aware of this, but since this code is going to be part of a
didactic article on writing a WMS client, I emphasize clarity over performance
(this is
Since I am here…
Le 29 oct. 2012 à 10:56, Andreas Grosam a écrit :
> With NSFileManager I've created a file in the temporary directory. Attempting
> to delete it, fails:
>
>NSFileManager* fm = [[NSFileManager alloc] init];
>NSLog(@"tmp file: %@", [_input1000 path]);
>
Hi folks,
before aught else, all my thoughts to those of you in the Eastern coast that
are preparing themselves for a bunch of bleak days…
I’ve just a silly question (I know, I don’t post very often and I apologize for
that): I need to convert a HTML style string, with “& escapes” to normal UTF
On 16 août 2012, at 03:11, Britt Durbrow
wrote:
> objects must be 16-byte aligned - and that alignment requirement isn't likely
> to go down, but rather up in the future; using the low bits doesn't really
> cause the same issue that using the high bits did.
Well, I partly disagree. There is n
Le 13 août 2012, à 23:47, Mike Abdullah scripsit:
> An idea I've vaguely wondered about would be turning the isa variable into a
> tagged pointer. If you know nothing is accessing it directly (to do so was
> deprecated with the modern runtime), then, say, the last 4 bits of the
> pointer could
Le 12 août 2012, à 04:09, koko écrivit :
> Is 64-bit the end or will there be 128-bit?
The term "64-bit" is misleading. There are several parameters that can be
quantified by a number of bits: internal width of registers, of the data and
address buses, both internal and external, of the variou
Le 11 août 2012, à 05:05, Eric Wing écrivit:
> There are actually other compelling reasons to move to 64-bit that
> have nothing to do with the amount of addressable memory or max int.
> For example, i386 is register starved which has implications on
> performance. The modern CPU architectures co
Le 5 juil. 2012 à 20:23, Greg Parker a écrit :
> Note that C++ allows overloading of almost everything, including binary ^,
> but it doesn't allow creation of new operators like unary ^.
Thanks Greg for that precision.
Vincent
___
Cocoa-dev mailing
On 9 juil. 2012, at 20:40, Greg Parker wrote:
> On Jul 9, 2012, at 5:44 AM, Vincent Habchi wrote:
>> Modern CPU do not enforce strict alignment for integer access. You can
>> perfectly access a Dword (64 bits) at any address, even or odd. It is just
>> more efficient to a
On 5 juil. 2012, at 07:41, Nathan Day wrote:
> It must if 64bits is read in that mean you have just read in two 32bit words.
> So to put a 32bit word in a 64bit register some bit must be ditched, in some
> way, and if the CPU is optimise to only work with 64bit word alignment (don't
> know how
On 5 juil. 2012, at 02:45, Graham Cox wrote:
> I read recently that the '^' was the only possible operator that could be
> used due to the inherent grammar of C meaning that anything else would have
> introduced ambiguity
If I remember correctly, it has more to do with C++ overloading. ^ is no
Le 28 juin 2012 à 18:30, Charlie Dickman <3tothe...@comcast.net> a écrit :
> In IB you can set the "Draws Background" property to no (uncheck the box) or
> send the NSTextField a SetDrawsBackground: NO message.
Yep, but that’s working only for non-editable fields. In an editable field, I
get a
> My next step (which is my way of saying I haven't tried it) would be to
> investigate -[ windowWillReturnFieldEditor:toObject:], and
> set the field editor's backgroundColor (it's in NSText) to the transparent
> color.
I'll do that, yes. Besides, I need to override the cursor to make it look
Hi everybody,
I’m trying to add a transparent editable NSTextField to a view. As long as the
field is not editable (e.g. a label), everything is fine; but with an editable
field, I get a background fill. I imagine this is under the window NSTextView
responsibility. Has someone already succeeded
Hi there,
briefly speaking, I have a sublayer that I draw using various Bezier paths and
other goodies (code generated by PaintCode™). No matter where I set the frame
of my sublayer, or what I do with bounds, the drawing always appear in the
lower left corner of the parent NSView. Is that norma
On 25 avr. 2012, at 20:41, Mikkel Islay wrote:
> apps and frameworks. I agree it is a pity many who really want to go, can't.
> Having said that, there are a number of community-organised conventions in
> the US and Europe throughout the year, if you can't attend WWDC, those
> provide great op
•••—•—
On 25 avr. 2012, at 19:19, Rick Mann wrote:
> Is WWDC really sold out already?
That was faster than the eye can wink. I wonder how many tickets are actually
offered.
Vincent
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
Le 2 avr. 2012 à 14:37, "Reaves, Timothy" a
écrit :
> He wants to write an app that will take a picture of shorthand and turn it
> in to text.
Stenography (Greek stenos-: reduced) is an obsolete system of script
secretaries used to take notes on the fly. I’m not sure, but I think it is a
syll
> not everyone uses Xcode. I vaguely remember hearing that the Kernel folks
> mainly use Makefiles. Which makes sense considering how much of that is open
> source, cross-platform etc.
I recently bought a book on OpenCL partly written by some guy at Apple (can’t
remember the title right now sin
Mike,
> The best you can hope for there is either:
>
> A) Subclass NSNumberFormatter. Use IB to set an existing number formatter to
> use your subclass
>
> B) Subclass NSFormatter directly. Drag a plain NSObject into the xib from the
> library. Set it to be your subclass. Hook up the formatter
Sean,
> NSNumberFormatter does not support that. But writing such a custom formatter
> would be a few dozen line of code, and pretty straightforward.
I agree this is fairly simple; I just wanted to avoid the task altogether! :)
BTW, such custom formatter would, of course, not be usable in IB,
Hi everybody,
I’m trying to display decimal angles in DMS format (e.g. : 10,5 -> 10° 30').
Apparently, NSNumberFormatter does not know about angles. Has anybody heard of
a third party NSFormatter class (NSAngleFormatter?) or do I have to develop a
custom formatter from scratch?
If nothing exis
Corbin,
> Yes, NSOpenGLView has:
>
> - (BOOL)isOpaque {
>return YES;
> }
Thanks for your answer!
Could the documentation then mention than when an NSOpenGLView occupies the
whole frame of its parent window, and when its context is set to draw under,
one should override -isOpaque to return
> I had to battle to correctly display an NSOpenGLView whose context was set to
> "draw under" (Glint swapInt = 1; [[self openGLContext] setValues:&swapInt
> forParameter:NSOpenGLCPSwapInterval];). It seems that NSOpenGLView silently
> overrides the -isOpaque method of NSView
Oops, that was no
Hi there, and happy new year to everybody!
I had to battle to correctly display an NSOpenGLView whose context was set to
"draw under" (Glint swapInt = 1; [[self openGLContext] setValues:&swapInt
forParameter:NSOpenGLCPSwapInterval];). It seems that NSOpenGLView silently
overrides the -isOpaque
> OK, I found a way to import it into FileMaker. It looks good when I use DOS
> Encoding. But when I use kCFStringEncoding derivates I had no luck. I know CF
> and NSString is toll free bridged, but does this apply to the encodings as
> well? There is some post from 2000 by Ali Ozer that would s
> Yes, tried NSUTF8StringEncoding, I really tried all the ones I found in the
> NSString encoding documentation.
>
> When I import this file as DBF into FileMaker Pro it looks just as bad. But
> when I import it into a MySql it works fine.
>
> Here an example of what NSLog says:
>
> "R\U00
Le 22 déc. 2011 à 09:13, Alexander Reichstadt a écrit :
> Yes, you are right, but it does not make a difference, I tried all encodings.
Did you try UTF-8 encoding?
Besides, if you open your file with an external application, e.g. OpenOffice or
TextWrangler, what happens?
Vincent
Nick,
I cannot elaborate much on this and give you code (not because it is somehow
confidential, but just because it is a general idea I don’t have implemented,
though I’m familiar with CAScrollLayers). The idea is thus:
1. Draw a normal NSView that you back with a CAScrollLayer. Give it the ri
> And then, I do not have much space on the window to put this
> coverflow (while a strip can be small and still look good), plus a
> strip can display more than 1 item at once, and the user can click on
> any of these items without too much of scrolling).
Why don’t you use CALayers (more specifi
Le 18 nov. 2011 à 19:45, Kyle Sluder a écrit :
> Yes, that would indeed be true. I just assumed you were adding the
> image rep to an NSImage and using -[NSImage drawInRect::].
I considered that for a while, but since -drawInRect exists for
NSBitmapImageRep, I thought it was useless.
Beside
Kyle,
> Re-read the "NSImage: deprecating -[NSImage setFlipped:], adding a
> drawing method that respects context flippedness" section of the 10.6
> AppKit release notes to make sure you're correctly using the "flipped"
> property and the respectFlipped: argument to -drawInRect:: :
I’ve tried
PS : Of course, a workaround is to flip the view coordinates thus:
[myView translateOriginToPoint:NSMakePoint(0, [self frame].size.height)];
[myView scaleUnitSquareToSize:NSMakeSize(1, -1)];
but it still does not explain why -drawInRect:fromRect:…hints: seems to ignore
the hints.
Vincent
Hi there,
I’m trying to draw a flipped NSImageBitmapRep object (data comes out of an
OpenGL depth buffer) in a NSView. I thought I could set up an appropriate
affine transform (x’ = x, y’ = height - y), embed it in a dictionary and put
that in the hints parameter of a -drawInRect:fromRect:…hin
> Some apps, including iTunes, using /Users/Shared/ for DRM. It may still be
> world-writable in Lion [which I can't confirm as I haven't switched
> yet...come on 10.7.2...].
I can confirm /Users/Shared is world writable on 10.7; besides, it has the
sticky (8) bit set, just like /tmp.
Vincent
Le 5 août 2011 à 08:42, Kyle Sluder a écrit :
> Not being an Aperture user myself: Is Aperture a Cocoa app? Do these key
> equivalents work if the main content view isn't first responder. Are they
> even assigned in the menus?
Aperture runs in 64-bit mode and, AFAIK is built on the ProKIT. Isn
>> The reason I have tried is that in the same menu I use 0,1,3,6 without cmd
>> modifier and they work just fine.
>>
>
> I'd strongly suggest you don't do this.
>
> Firstly, it's completely non-standard. Users are used to cmd- for menu
> actions, so odds are they'll see the equivalent, type c
Le 31 juil. 2011 à 09:27, Ron Hunsinger a écrit :
> When a process forks, the child and parent get different virtual memory maps
> that, for the time being, happen to point to the same physical memory pages.
> The sharing is an implementation detail, for optimization. Conceptually, the
> parent
> Memory is "virtual", the addresses you appear to be working with are not real
> (i.e. they don't refer to the real address of the physical RAM underneath).
> Instead, a bit of hardware translates these to the real addresses as needed
> at some level far below the perception of your program. Yo
Le 29 juil. 2011 à 04:50, Gideon King a écrit :
> Sorry - missed an important bit of info - this applies for a view that is in
> the toolbar. So far as I am aware, it
The toolbar is supposed to disappear in full screen mode, no?
V.
___
Cocoa-dev ma
Salut Jean-Daniel,
(It is always fun talking to other French speaking people in English :))
> Xcode is a tool we have to use all the day. This is not just a luxury product
> we don't need at all.
I disagree. You can still code any Apple application with vi, make, clang,
dyld, ar, whatever else
Well, I wouldn’t want to throw more oil on the fire, as the French saying goes,
but, in my opinion, this looks like tycoons arguing about the color of their
Ferraris or which Bordeaux grand cru (or whatever else). I used to be a Unix
(NetBSD) developer, coding with vi(m), and managing projects
> I'm curious if there is a way to NSLog how long some code takes to execute
> (outside of using Instruments).
>
> In Flash one can use getTimer and see how much time passed inline. Is there
> a way to do this in Obj-C?
You can use the basic old std C routines like clock ().
Vincent
Hi,
> NSString *tempFilePath = @"/Users/john/OutCocoa.txt";
> NSString *commandLine = [NSString stringWithFormat:@"/sbin/ifconfig en0 |
> grep ether | cut -d' ' -f 2 > \"%@\" 2>&1", tempFilePath];
> sprintf(cmd, "/bin/sh -c %s", [commandLine UTF8String]);
Quote the command.
sprintf (cmd, "
> I'm looking for ideas on what might cause this behavior: an existing app that
> was compiled with 10.6 SDK runs fine on 10.6 and 10.5. When run on 10.7,
> document windows (and their window controllers and NSDocuments) do not get
> released when the window is closed.
NSDocuments on 10.7 are s
Le 21 juil. 2011 à 07:24, Peter C a écrit :
> Vincent, I meant changing to write to ~/Library/Preferences, user directory.
Ah, okay. But do not forget to use the proper API to get the ad hoc ROOT
directory!
Vincent___
Cocoa-dev mailing list (Cocoa-dev
> I have think of authorization code but it seems now Apple does not want
> others to write into this directory. Better to change code to adapt to new
> settings.
You will have to. Sandboxing, if you adopt it, won’t let you write in there
anyway.
Vincent
___
Hi Quincey,
> What does "shows (modally)" mean?
It's a modal panel, displayed though a -[NSApp runModalForWindow:].
> The initial first responder is the view that's *going to be* the first
> responder, when it's window becomes key. Panels don't become key at the same
> times as regular windows
> Thanks. The distance is computed because the entry string is dynamic and it's
> providing a distance between the title of the song and what was entered as
> text. So I can't pre-compute that data and stuff into a dictionary. Each time
> the method is called, the stringValue will be different.
> Someone told me to look into -enumerateKeysAndObjectsWithOptions:usingBlock:
> (using NSEnumerationConcurrent) Would that be a better way? If so, I haven't
> seen this used before - how could I apply it?
You can try to use that, but, basically, it is the same problem: you enumerate
all entrie
1 - 100 of 313 matches
Mail list logo