>> 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 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
> 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
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
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
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
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
> 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
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
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
> 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
> 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
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
> 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
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
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
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,
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
> 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
Hi there,
it has been a long time since I have posted to this list, I had to give up
Cocoa programming for a while; I hope everybody is doing well.
I have a little and by-the-way question, if anybody has ever stumbled upon
this: I'd like to blur the screen *outside* of the perimeter of a CALaye
Le 29 avr. 2011 à 17:01, McLaughlin, Michael P. a écrit :
> I am writing the drawRect routine for a custom view in which I need to draw
> a simple X-Y graph, given the data. Desiring to be elegant and up-to-date,
> I decided that the best (Cocoa) way to do this was to construct a scaling
> affine
Hi there,
I'm, as we say in French, tearing my hair away with this little problem:
Briefly, I have an object in a NIB file, and I'd like it to load further NIB
files (through +[NSBundle loadNibNamed:owner:] calls), all of them ending with
the same suffix (ex: onefoo, twofoo, threefoo).
I just
Le 6 juil. 2011 à 14:27, Alexander Reichstadt a écrit :
> Try:
> NSArray *sometest = [[NSBundle mainBundle] pathsForResourcesOfType:@"nib"
> inDirectory:@"."];
> for (id thisOne in sometest){
> NSLog(@"This is a path:%@",thisOne);
> }
Thanks for the hint, I'll do that right away.
Viel Da
Re-hi,
implementing Alexander's idea, I wrote this code to load Nibs ending with
"Connector":
- (void)fetchAndInitializeConnectors {
// Search all NIB files ending with "connector" and load them
for (NSString * path in [[NSBundle mainBundle]
pathsForResourcesOfType:@"nib" inDire
Le 6 juil. 2011 à 17:09, Kyle Sluder a écrit :
> On Wed, Jul 6, 2011 at 7:08 AM, Vincent Habchi wrote:
>> However, I end up in a cycle, whereby the call to [NSBundle
>> loadNibNamed:name owner:self] generates a (unexpected) callback to
>> -awakeFromNib. How come? Is
Le 6 juil. 2011 à 18:10, Douglas Davidson a écrit :
> It isn't necessary to use @"." here; you should be able to pass nil for that
> argument if the resources in question are not in a subdirectory. From the
> header comments: "subpath is a relative path to a subdirectory inside the
> relevant
Le 7 juil. 2011 à 11:43, Manfred Schwind a écrit :
> - On OS X all objects of the nib including the file's owner get an
> awakeFromNib.
> - On iOS also all objects of the nib (including top-level objects!) but NOT
> the file's owner get an awakeFromNib.
>
> BTW, I can't find this documented so
Hi!
> In the document object, I am observing such an event, then creating a handler
> and calling it. I have handled creation either by explicit allocation such as
> [[HandlerClass alloc] initWith...] or by writing a class method to create an
> object like [HandlerClass createHandlerWith...]. I
Salut ! :)
> I'm having problems tracking down this bug:
>
> -[NSCFString string]: unrecognized selector sent to instance 0x7fff71192b70
Besides anything that was already mention, I may add that this kind of error is
frequently caused by the object being freed and its memory reused by another
Le 18 juil. 2011 à 15:26, Ryan Joseph a écrit :
> I literally mean that _exact_ snippet is leaking, 2 lines of code with no
> retaining by any superviews. I only have limited experience with Cocoa and
> don't use Objective C so maybe someone else could test this. Just allocate,
> initialize the
Andre,
> Any other ideas?
Try to use the Zombies Instrument. If you're sending a message to a deallocated
object (as this is certainly the case), it will pop up.
Bonne chance ! ;)
Vincent
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Plea
Le 19 juil. 2011 à 07:21, Gideon King a écrit :
> But I told it to pre-fetch the view relationship. Any ideas why it wouldn't
> work?
Maybe a silly answer, but isn’it a side effect of lazy loading?
V.
>
___
Cocoa-dev mailing list (Cocoa-dev@lists
> I have an NSMutableArray that contains a MPMediaItem and song title as it's
> key.
>
> I then take a search string and loop through the entire NSMutableArray
> looking for a fuzzy match. It works very well, the problem is that the array
> contains 1,777 items (could contain more) and the search
> Oops - I meant to say it's an NSMutableDictionary!
>
> What might a quick stubbed example of that be? Not sure I am following. How
> much speed would it generally gain?
Simple example. Init a NSMutableDictionary. For each string, compute a hash key
as the sum of all chars composing it (in a s
> 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
> 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.
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
> 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
___
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'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
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 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
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
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
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
> 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 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
Hi to all,
I'm trying to write a (at that time) simple GIS-like application based on
Cocoa. For each cartographic layer, I use a CALayer object, which is nice to
control things like opacity in real-time.
However, I'm facing a challenge: when the user move the mouse, the drawing must
move accor
Hi Scott,
> this specific example of course assumes that you’re using the iphone. But,
> the technique should be sound for what you’re trying to do.
>
> The technique is applicable to use a pool of multiple views to contain
> smaller amounts of the content. the advantage is that you can render
Douglas,
> Have you checked the values of dx and dy in the debugger? Shouldn't those
> variables be declared as CGFloats as opposed to int?
That's correct, but it does not matter since the int is automatically converted
to float/double. Actually this part of code works like a charm. You click,
Hi again,
in my project, I have a managed object A, that has a relationship to an other
managed object B, itself in relation with a third object C (which happens to be
a CALayer, therefore is not part of Core Data): A -> B -> C.
The object A I register in a NSArrayController, whose content is l
David,
> Yes it is. The contents property is generally used to represent bitmapped
> content of a layer, which in the case of a plain CALayer means that anything
> drawn via -drawInContext: or -drawLayer:inContext: will be accessible via the
> contents property.
Thanks for that answer. I would
Le 22 janv. 2010 à 19:41, David Duncan a écrit :
> This will set layer1 and layer2 to use the same contents, and have them use
> different parts of that bitmap.
>
> However your contentsRect is being set incorrectly. The contentsRect is a
> rectangle in a unit coordinate system, which means tha
Hi Corbin,
>> I have a NSButton in C to remove from the array controller the A object it
>> represents. However, each time I click on that button, I first get a warning
>> telling me that I remove an observed object before releasing the observer,
>> and then the program crash,
>
> If you have
Le 23 janv. 2010 à 21:43, cocoa-dev a écrit :
> I have a core data app with a model where there is a one-to-many relationship
> between CD and Track (CD has an NSSet called tracks). The tracks are shown
> in an NSTableView and the content set is managed by an NSArrayController. To
> manually
Dobre dien, privet, poka!
Le 24 janv. 2010 à 08:38, Alexander Bokovikov a écrit :
> On 24.01.2010, at 1:12, Kyle Sluder wrote:
>> You should turn on zombies and run your app in the debugger on 10.4.
>
> Could you please describe it more particularly, as it's not clear for me what
> should I do
Le 24 janv. 2010 à 10:19, Arun a écrit :
> Hi All,
>
> I want to allow my cocoa app to be only launched by root/admin users.
> How can i achieve this?
That's Unix, not Cocoa. Either set you app to owner root (chown -R root.wheel
myapp) and then chmod to 744 (chmod -R 700 myapp), so that nobody
Le 24 janv. 2010 à 10:19, Arun a écrit :
> Hi All,
>
> I want to allow my cocoa app to be only launched by root/admin users.
> How can i achieve this?
Ah, I forgot. If you want also the admin users to launch your app, the owner
should be root:admin and permissions should be 774 or you should t
Le 24 janv. 2010 à 22:31, Todd Heberlein a écrit :
>> I want to allow my cocoa app to be only launched by root/admin users.
>> How can i achieve this?
>
> As I think has already been mentioned, the UNIX approach is to set the
> application's owner as root and then make it only executable by the
Le 25 janv. 2010 à 10:43, Jean-Daniel Dupas a écrit :
> So unless you think you know better than Apple what you're doing, never run
> an GUI application with privileges. Gwynne's anwser give you some reasons why
> this is bad.
Je ne dis rien de tel ;)
Look at the text: the security measure doe
Le 25 janv. 2010 à 11:56, Uli Kusterer a écrit :
> At WWDC I was told that Apple don't test AppKit against root (or at least,
> not much). Since the idea is to limit the time applications run as root for
> security reasons, there is no high priority find and fix such issues in
> AppKit. This me
Hi again,
the silly question is this: is it possible to redraw a CALayer in background?
More specifically, I've written a delegate method drawLayer:inContext: that
creates a thread that does the drawing then returns.
Net result, when I do that, is void. The screen is blank, I think because
no
David,
Le 25 janv. 2010 à 21:39, David Duncan a écrit :
> If you want to draw to a layer on a separate thread, you need to run the
> runloop on that thread, as Core Animation is pretty highly dependent on the
> run loop operating. If you call -setNeedsDisplay on a thread where you never
> run
David,
Le 25 janv. 2010 à 21:39, David Duncan a écrit :
> If you want to draw to a layer on a separate thread, you need to run the
> runloop on that thread, as Core Animation is pretty highly dependent on the
> run loop operating. If you call -setNeedsDisplay on a thread where you never
> run
David,
Le 28 janv. 2010 à 00:09, David Duncan a écrit :
> Are you calling -drawLayer:inContext: yourself? if you are, don't do that -
> just call -setNeedsDisplay on the layer, it will do the right thing.
Yes, that exactly what I do: I have set up a custom loop event, that I trigger
each time
Le 28 janv. 2010 à 08:43, K.Darcy Otto a écrit :
> NSRect rect = NSRectFromCGRect([hitLayer frame]);
> float width = rect.size.width;
>
> That is, it returns a width, but not the width in the current window
> coordinates. Any ideas? Thanks.
What do you mean by "not the width in the current wi
Le 28 janv. 2010 à 18:05, David Blanton a écrit :
> I cannot discern a method that tracks the knob on and NSSlider.
>
> Is it possible to track an NSSlider?
Binds "value" to some KVC variable of your tracking object, no?
Vincent___
Cocoa-dev mailing
> On Jan 28, 2010, at 9:05 AM, David Blanton wrote:
>
>> I cannot discern a method that tracks the knob on and NSSlider.
>
> Check the "continuous" checkbox in IB (or set the object property of the same
> name) and your target will get called while the user drags, as soon as the
> position chan
Le 28 janv. 2010 à 19:30, mmalc Crawford a écrit :
>
> On Jan 28, 2010, at 9:42 am, vincent habchi wrote:
>
>>> Check the "continuous" checkbox in IB (or set the object property of the
>>> same name) and your target will get called while the user drags,
David,
> You can create the images on a secondary thread, then pass them back to the
> main thread for assignment. The heavy operation is the drawing, not the
> uploading of drawn content. You may also want to consider culling some of
> that data before you draw it.
You're right. Up to that po
Le 28 janv. 2010 à 19:51, Charles Jenkins a écrit :
> Considering that the knob will probably be oddly shaped, how do I get the
> system to draw the focus ring? Is the system focus ring something you can
> just add to any graphic?
No, but maybe you can back the drawing of your control by a smal
Le 28 janv. 2010 à 21:37, David Duncan a écrit :
> On Jan 28, 2010, at 12:29 PM, vincent habchi wrote:
>
>> You're right. Up to that point, I'm quite satisfied with generating the
>> contents directly out of the delegate, but, in a sense, your approach is
>>
Le 30 janv. 2010 à 16:11, Chunk 1978 a écrit :
> thanks. NAN seems to be the simplest solution.
At the same time, if your float is supposed to lie in the range [x, y],
returning any float outside this range (and not necessarily a NAN) can mean
whatever you want.
Vincent___
> What the heck. What's the worst that could happen???
Transform the iPhone into an automated call machine?
Vincent
>
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
Hi there,
There is little documentation available on the working of NSGlyphGenerator (or
concrete subclasses thereof). If there is any guru lurking around, I'd like to
know if it is expected that, upon sending a string for glyph generation through
-(void)generateGlyphsForGlyphStorage: desiredNum
Le 7 août 2010 à 21:26, Gordon Apple a écrit :
> I want iTunes inport/export file sharing. However, I have a number of
> internal document files and folders which I do not want shared or visible in
> iTunes, because they can be accessed and (accidentally) deleted by the user.
> I've tried hiding
Hi there again, sorry for being a bit too verbose tonight (it's 10:18 pm here).
Just something strange, or something I misunderstood. I have an NSTextField
that serves as a semi-assisted SQL editor: it colors keywords and operators,
and also changes their glyphs on-the-fly to make them look uppe
Aki,
> No, it doesn't chunk based on word boundary.
> It could callback in chunks in order to prevent allocating too large buffer,
> though.
>
> So, you should be prepare to insert whatever requested.
In fact, you're (of course) right. What I see is that it does cut as long as I
keep typing
Le 7 août 2010 à 22:35, Kyle Sluder a écrit :
> Please describe your text system setup. Is it possible your custom glyph
> generator is only being used for the field editor, not for the text field's
> layout manager?
Of course Kyle, you're a genius! I wonder what this list would be without your
Thanks again Kyle.
Vincent
PS: Since NSText is a superclass of NSTextView, it would not break
compatibility to change the return type to NSTextView anyhow, no? Unless some
method is overriden...___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
P
Le 9 août 2010 à 19:03, Kyle Sluder a écrit :
> Oops. We have custom analogues of NSTextFieldCell that allow us to
> specify an NSTextStorage in -setObjectValue:. I forgot that
> NSTextFieldCell doesn't let you do this; it always uses its own layout
> manager.
>
> I believe you will need to imple
Hi everybody,
just a tiny question: I have a NSTextField whose field editor is customized.
When I click inside to begin typing text, to my surprise, its (that is, the
NSTextField) -(BOOL)resignFirstResponder gets called, which is rather
unexpected since the field is, on the contrary, acquiring
Le 17 août 2010 à 23:03, James Miller a écrit :
> // NSString *level = [[NSString alloc]
> // initWithContentsOfFile:path
> // encoding:NSUTF8StringEncoding
> // erro
Le 23 août 2010 à 08:12, Ahsan Shafiq a écrit :
> I need to draw text in circular path. Any thoughts or comments on it?
It is not for the faint-hearted, but if you look at Apple documents about the
text system, you'll find a sample code.
Vincent___
What compiler are you using?
Vincent
___
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(at)lists.apple.com
Help/Unsubscribe/Update your
Le 25 août 2010 à 19:39, Benjamin Rister a écrit :
> On Aug 25, 2010, at 10:48 AM, vincent habchi wrote:
>
>> If you use plain GCC 4.2 instead, does it also crash?
>
> Well, it’s hard to say, since it doesn’t happen on demand. I’d have to make a
> new build and push it o
Hi everybody,
just an enquiry regarding coding style. What is considered best:
baz = [[[Foo alloc] init] autorelease];
…
return baz;
or
baz = [[Foo alloc] init];
…
return [baz autorelease];
?
Thanks!
Vincent___
Cocoa-dev mailing list (Cocoa-dev@lis
Hi again,
first, thanks a lot to all of those who took five minutes of their own time to
answer my "micro-poll". I really appreciate it.
So, to wrap up, that's mainly up to each person's taste. I think I'll stick to
the first solution I used since then.
Thanks again!
Vincent
_
Hi everybody,
I just wanted to know someone has already tried to successfully send a CALayer
-drawInContext method to a GCD dispatch queue. I suspect this is not possible,
because of main loop related issue, but this is unclear.
If it does not work, does it make sense to divide the code in two
David, Chris,
I promise I did not plan to start an Apple internal quarrel! ;)
>>> dispatch_async(queue, ^{
>>> [layer display];
>>> [CATransaction flush];
>>> }
>>
>> There is (almost) never any reason for anyone to be calling +[CATransaction
>> flush] directly. You'll cause all sorts o
Le 2 sept. 2010 à 21:42, Stephane Sudre a écrit :
>
> This does not work as well in Mac OS X 10.6.
> Because when you double-click on the word myclass in a text like this:
>
> myclass.mymethod
>
> this selects myclass.mymethod.
>
> On previous OS versions, only myclass was selected.
You can a
Le 3 sept. 2010 à 07:15, kirankumar a écrit :
> Mac os x does not support IrDA protocols (IrLAP, IrLMP, IrNET).why?
I don't think this list is the right place to ask such a question! Besides,
isn't IrDA dead anyway?
Cheers
Vincent
___
Cocoa-dev mail
Le 3 sept. 2010 à 00:17, David Duncan a écrit :
> Doing so would cause you all manners of pain and suffering, the most common
> of which is things "mostly" working but occasionally your drawing going into
> the wrong view. Basically *never* use the context given to you in
> -drawInContext: outs
> I have implemented what you suggested. I get a strange behavior: the first
> time I enqueue a request for display, everything is fine. But then I cannot
> draw any further: any subsequent call, albeit correctly enqueued in the
> block, does nothing: the -(void)display
Read: "at any subsequen
David,
Yes. I have put a NSLog in both -display and -drawInContext. The first is run,
the second never...
Vincent
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
After much (private) talk with David, we are both at the loss with this issue.
I'll investigate further but, meanwhile, does somebody here on the list have
tried to refresh CALayer within GCD blocks? If yes, does it work?
Thanks,
Vincent___
Cocoa-dev
Hi again,
I was chasing some leaks in my app; I may be too perfectionist, but I cannot
reduce them to zero. There appears to be small leaks in, for example,
NSOpenPanel methods, somewhere deep inside (more specifically in
CFStringCreateWithCStringNoCopy). It's matter of a dozen of bytes, but it
Le 7 sept. 2010 à 16:28, Raleigh Ledet a écrit :
> Create the smallest test app that you can that duplicates the problem. Then
> attach it to a new radar along with an instruments trace.
Okay, I'll do that asap – I am going to become specialist for these kind of
things :)
Thanks for the answer
Hi again,
well, I am embarrassed. I may have misunderstood or misinterpreted the output
of the 'leaks' instrument regarding the leak I thought located in Cocoa, but,
at the same, I stumbled on a bug of 'leaks' itself… that leads to crash or, at
best, the sampled application being 'wheeled' with
Le 9 sept. 2010 à 21:58, Remco Poelstra a écrit :
> I'm looking for some way to generate a tone that resembles the sound of an
> instrument. I need precise control of the base frequency (pitch). I'm
> wondering what would be the best way to generate it on an iPhone.
> Store a file with a know fr
101 - 200 of 313 matches
Mail list logo