Re: A hillegass challenge

2009-12-03 Thread Seth Willits
On Dec 3, 2009, at 11:39 PM, Michael de Haan wrote: > I would like to ask the group if this is "good practice" ( I am almost > certain it is not "best practice" :-) ) > > My question pertains to knowingly setting an object to NULL and then > knowingly sending it a message as an acceptable t

Re: How to get an italic font

2009-12-03 Thread mlist0...@gmail.com
Is there some reason you can't use -[NSFontManager convertFont:toHaveTrait:] ? It "returns a font whose traits are the same as those of the given font, except that the traits are changed to include the single specified trait." So something like: NSFont* myFont = [your code here]; NSFont* myIta

A hillegass challenge

2009-12-03 Thread Michael de Haan
I would like to ask the group if this is "good practice" ( I am almost certain it is not "best practice" :-) ) My question pertains to knowingly setting an object to NULL and then knowingly sending it a message as an acceptable technique. (If this is not done, drawRect will simply show the

How to get an italic font

2009-12-03 Thread Gerriet M. Denkmann
I want an italic font corresponding to an existing font. I tried: NSFontDescriptor *fd1 = [ NSFontDescriptor fontDescriptorWithName: @"Times" size: textFontSize ]; NSLog(@"%s text NSFontDescriptor %@",__FUNCTION__, fd1); // NSFontNameAttribute = Times; NSFontSize

Re: applicationShouldTerminate problem

2009-12-03 Thread Andrew Farmer
On 3 Dec 2009, at 00:25, proger proger wrote: > I'm making little cocoa application. After the application will be closed i > need to show alert. So i created applicationShouldTerminate delegate: > > - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)app > { > > if (textCh

beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector: on 10.6

2009-12-03 Thread Charles Burnstagger
What changes were made to NSSavePanel beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector: in 10.6? When I set my Xcode 3.2 project's base SDK to 10.6 and Deployment target to 10.5 it says the method is deprecated. Yet when I run Apple's ImageKitDemo, also using the 1

Re: Why is "set" a class method of NSColor?

2009-12-03 Thread Jack Boyce
Argh, never mind. I overlooked an important section of the Cocoa Drawing Guide. Jack On Thu, Dec 3, 2009 at 6:46 PM, Jack Boyce wrote: > I'm learning Cocoa, trying to understand certain "magical" features where > it isn't obvious how things work under the hood. (KVO and isa-swizzling is > a

Why is "set" a class method of NSColor?

2009-12-03 Thread Jack Boyce
I'm learning Cocoa, trying to understand certain "magical" features where it isn't obvious how things work under the hood. (KVO and isa-swizzling is another prime example.) Can someone kindly explain, or point me to an explanation for, what's really happening with: [[NSColor blueColor] set];

Fwd: applicationShouldTerminate problem

2009-12-03 Thread proger proger
Hello, I'm making little cocoa application. After the application will be closed i need to show alert. So i created applicationShouldTerminate delegate: - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)app { if (textChanged == 1) { int ret = NSRunAlertPanel(@"Save th

Re: Best way to hook into the run loop?

2009-12-03 Thread Jason Foreman
On Dec 3, 2009, at 10:17 PM, Graham Cox wrote: > One thing I'd like to do is to match NSUndoManager's ability to automatically > open and close groups as the run loop cycles. What's the best way to do this? Possibly by using a CFRunLoopObserver. You can look into CFRunLoopObserverCreate and t

Re: Outline View.

2009-12-03 Thread Sandro Noël
On 2009-12-03, at 11:07 PM, Graham Cox wrote: > > http://apptree.net/gcfolderbrowser.htm > > > hth, > > --Graham > Graham thanks for the link, the component is deprecated thow. but it's a good enough example. ___ Cocoa-dev mailing list (Cocoa-dev@

Best way to hook into the run loop?

2009-12-03 Thread Graham Cox
As my undo woes continue and multiply, I'm working on my own undo implementation, as least as a back-up strategy. One thing I'd like to do is to match NSUndoManager's ability to automatically open and close groups as the run loop cycles. What's the best way to do this? What's needed is a way to

Re: Text insertion point not blinking

2009-12-03 Thread Kyle Sluder
On Thu, Dec 3, 2009 at 7:39 PM, Gideon King wrote: > It is a very simple subclass of NSTextView. It is not in a scrollview, but is > added as a subview of another view. IB makes it very difficult to put a standalone text view anywhere, since they belong in scroll views unless they're the field e

Re: Outline View.

2009-12-03 Thread Graham Cox
On 04/12/2009, at 2:59 PM, Sandro Noël wrote: > I was wondering if anyone had a good example or post for the Dreaded Outline > View. > I'm trying to list the content of a directory but i'm having problems > understanding the model. > i have to feed the view. > > I've ran across a couple of exa

Outline View.

2009-12-03 Thread Sandro Noël
Greetings. I was wondering if anyone had a good example or post for the Dreaded Outline View. I'm trying to list the content of a directory but i'm having problems understanding the model. i have to feed the view. I've ran across a couple of examples but they all mix up my mind. there all addin

Re: Text insertion point not blinking

2009-12-03 Thread Gideon King
It is a very simple subclass of NSTextView. It is not in a scrollview, but is added as a subview of another view. On 04/12/2009, at 1:27 PM, Kyle Sluder wrote: > On Thu, Dec 3, 2009 at 9:17 AM, Gideon King wrote: >> I have a text view which has the drawsBackground: set to NO, and now the >> in

Re: [iphone] Libxml2 with a wrapper to NSArray

2009-12-03 Thread Fritz Anderson
On 3 Dec 2009, at 5:40 PM, Philip Vallone wrote: > NSString *filePath = [[NSBundle mainBundle] pathForResource:@"manifest" > ofType:@"xml"]; > NSData* xmlData = [filePath dataUsingEncoding:NSUTF8StringEncoding]; Separate from Sean's help, sending dataUsingEncoding: to an NSS

Re: Text insertion point not blinking

2009-12-03 Thread Kyle Sluder
On Thu, Dec 3, 2009 at 9:17 AM, Gideon King wrote: > I have a text view which has the drawsBackground: set to NO, and now the > insertion point is not blinking - it's just a solid line. If I turn the > drawsBackground: on, it does blink as expected. Check the properties of the enclosing NSScrol

Re: Text insertion point not blinking

2009-12-03 Thread Rob Keniger
On 04/12/2009, at 12:51 PM, Gideon King wrote: > Thanks for the suggestion, but that made no difference. Weird. Is this a custom subclass of NSTextView or a vanilla one? If I create a new project, drag a text view into a window and turn off Draws Background for the scroll view and text view, t

Re: Text insertion point not blinking

2009-12-03 Thread Gideon King
Thanks for the suggestion, but that made no difference. Gideon > >> I have a text view which has the drawsBackground: set to NO, and now the >> insertion point is not blinking - it's just a solid line. If I turn the >> drawsBackground: on, it does blink as expected. >> >> Any suggestions as t

Re: NSSlider's setAltIncrementValue: broken?

2009-12-03 Thread Gregory Weston
Sean McBride wrote: > The docs for NSSlider's setAltIncrementValue: say "Sets the amount by > which the receiver modifies its value when the knob is Option-dragged". > It does not. > > Anyone using this successfully? Didn't work for me when I tried it just now. Two interesting behaviors observe

Re: NSSlider's setAltIncrementValue: broken?

2009-12-03 Thread Matt Neuburg
On Thu, 3 Dec 2009 18:29:49 -0500, "Sean McBride" said: >Hi all, > >The docs for NSSlider's setAltIncrementValue: say "Sets the amount by >which the receiver modifies its value when the knob is Option-dragged". >It does not. > >Anyone using this successfully? > >This was asked 4 years ago, almost

Re: Text insertion point not blinking

2009-12-03 Thread Rob Keniger
On 04/12/2009, at 3:17 AM, Gideon King wrote: > I have a text view which has the drawsBackground: set to NO, and now the > insertion point is not blinking - it's just a solid line. If I turn the > drawsBackground: on, it does blink as expected. > > Any suggestions as to why this could be happe

Why this NSUndoManager strange behaviour?

2009-12-03 Thread Graham Cox
I've noticed that under some, as yet to be determined, conditions, [NSUndoManager endUndoGrouping]; does not decrement the groupingLevel. Could someone with access to the sources tell me how this could be? Before I call -endUndoGrouping, the level is 1. Afterwards, the level is still 1. I've tu

Answered: How do I bind ManagedObject's relationships to a view?

2009-12-03 Thread Daniel Wambold
I'm posting this simply because I *thought* I had looked through all of Apple's "bindings for beginners"-style documentation, but hadn't seen this sort of dependent controller setup described. Sorry if it's obvious or redundant In the spirit of (finally) answering my own question (and i

Re: [iphone] Libxml2 with a wrapper to NSArray

2009-12-03 Thread Sean McBride
On 12/3/09 6:40 PM, Philip Vallone said: >However, I am not sure how to call this : > >NSArray *PerformHTMLXPathQuery(NSData *document, NSString *query) > > >Here is my code: > > NSString *filePath = [[NSBundle mainBundle] pathForResource:@"manifest" >ofType:@"xml"]; > NSData*

[iphone] Libxml2 with a wrapper to NSArray

2009-12-03 Thread Philip Vallone
Hi, I hope I am posting this to the write list. I am trying to parse an xml file with libxml2 and xpath. I am still learning objective c and Cocoa. I found this very useful wrapper for libxml: http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html However, I am not sure ho

NSSlider's setAltIncrementValue: broken?

2009-12-03 Thread Sean McBride
Hi all, The docs for NSSlider's setAltIncrementValue: say "Sets the amount by which the receiver modifies its value when the knob is Option-dragged". It does not. Anyone using this successfully? This was asked 4 years ago, almost to the day. No replies:

Re: MacResearch Tutorial on beginning a Cocoa/iPhone app.

2009-12-03 Thread Brian Dittmer
If you need graphing/charting on either iPhone or OSX then checkout CorePlot, it's a rather impressive and mature library for generating graphs and charts. http://code.google.com/p/core-plot/ Cheers, Brian On Thu, Dec 3, 2009 at 4:38 PM, Karolis Ramanauskas wrote: > Agreed, no network connecti

Re: MacResearch Tutorial on beginning a Cocoa/iPhone app.

2009-12-03 Thread Karolis Ramanauskas
Agreed, no network connection no graph! ;) What if I need to update my graph live? On Thu, Dec 3, 2009 at 2:48 PM, Philip Vallone wrote: > This post is very misleading. The tutorial is called "Using VVI for > Graphing on iPhone" however there is no graphing. The graph is pulled in > from the webs

Making NSFetchedResultsController register changes to the entity's relationship, not just attributes

2009-12-03 Thread Karolis Ramanauskas
Good day, I have an NSFetchedResultsController set up with an entity, ENTITY. ENTITY has a to-one relationship called REL. Now, in my table view, cells display some data that are the attributes of ENTITY and some data that are the attributes of REL. When I change the values of the attributes of EN

Making NSFetchedResultsController register changes to the entity's relationship, not just attributes

2009-12-03 Thread Karolis Ramanauskas
Good day, I have an NSFetchedResultsController set up with an entity, ENTITY. ENTITY has a to-one relationship called REL. Now, in my table view, cells display some data that are the attributes of ENTITY and some data that are the attributes of REL. When I change the values of the attributes of EN

Re: Core Data: insertNewObjectForEntityForName doesn't return my custom subclass during migration

2009-12-03 Thread Melissa J. Turner
On Dec 3, 2009, at 09:08, Sean McBride wrote: > Hi all, > > The docs for NSEntityDescription say > "initWithEntity:insertIntoManagedObjectContext: returns an instance of > the appropriate class for the entity". > > This seems to be mostly true. Yet when I do: > > [NSEntityDescription insertNe

re: NSSpellChecker and checkSpellingOfString problems

2009-12-03 Thread Keith Blount
Hi, Thanks for the reply. That's a good suggestion, but unfortunately it doesn't work. I tried: [spellChecker checkSpellingOfString:[NSString stringWithFormat:@" %@ ", theWord] startAT:0] and that returned NSNotFound too. Very strange. "accade" is clearly marked as a misspelling but for some

Re: MacResearch Tutorial on beginning a Cocoa/iPhone app.

2009-12-03 Thread Philip Vallone
This post is very misleading. The tutorial is called "Using VVI for Graphing on iPhone" however there is no graphing. The graph is pulled in from the website and viewed through the UIWebView. Just my thoughts... On Dec 3, 2009, at 12:09 PM, lbland wrote: > hi- > > Occasionally I see a trou

Re: Question about aliasing (analog clock hands)

2009-12-03 Thread Eric E. Dolecki
My rootLayer was using the view's bounds, etc. so this works now: rootLayer = [CALayer layer]; rootLayer.frame = CGRectMake(240, 160, 240, 160) ;*//self.view.bounds;* [self.view.layer addSublayer:rootLayer]; boxPath = CGPathCreateMutable(); CGPoint center = CGPointMake(0,0);*//self.view.cente

Re: Question about aliasing (analog clock hands)

2009-12-03 Thread David Duncan
On Dec 3, 2009, at 12:34 PM, Eric E. Dolecki wrote: > [shapeLayer setAnchorPoint:CGPointMake(240, 160)]; > > It just rotates around the top left corner (meaning it comes into and out of > view)... I am looking to simply spin the shape where it sits from it's > center. The anchorPoint is in a uni

Re: Question about aliasing (analog clock hands)

2009-12-03 Thread Eric E. Dolecki
Will do. One question - when I am rotating around z - it's using the top left of the shapeLayer as the anchor point. Trying to set it differently isn't changing the anchor point... CABasicAnimation *rotationAnimation; rotationAnimation =[CABasicAnimation animationWithKeyPath:@ "transform.rotation

Re: Question about aliasing (analog clock hands)

2009-12-03 Thread Kyle Sluder
On Thu, Dec 3, 2009 at 12:07 PM, Eric E. Dolecki wrote: > If I use CAShapeLayer, can I use CGAffineTransform on it? I need to pour > through the docs now I guess. Yes, please brush up on Core Animation. You can apply arbitrary transformations to a layer, or you can use the rotation/position prop

Re: Question about aliasing (analog clock hands)

2009-12-03 Thread Eric E. Dolecki
Cool - thanks for that heads up. If I use CAShapeLayer, can I use CGAffineTransform on it? I need to pour through the docs now I guess. On Thu, Dec 3, 2009 at 2:40 PM, Kyle Sluder wrote: > On Thu, Dec 3, 2009 at 11:24 AM, Eric E. Dolecki > wrote: > > I really don't know if this is the correc

re: NSSpellChecker and checkSpellingOfString problems

2009-12-03 Thread kvic...@pobox.com
i don't know if this is your problem or not, but i don't see the red underline when i "accade" until i type a word delimeter (e.g. a space or comma) after it. do u perhaps need to make sure the string u r passing to the spell checker has appropriate beginning and ending delimeters? ken At 1

Re: Question about aliasing (analog clock hands)

2009-12-03 Thread Kyle Sluder
On Thu, Dec 3, 2009 at 11:24 AM, Eric E. Dolecki wrote: > I really don't know if this is the correct approach - should I be using some > more complex way of displaying and rotating hands on an analog clock? Yes, use vector-based drawing with CAShapeLayer. --Kyle Sluder __

Re: Does initWithCoder re-create observers made with addObserver?

2009-12-03 Thread Quincey Morris
On Dec 3, 2009, at 09:21, David Hirsch wrote: > I'm trying to track down a bug. The subject says it all: If I've created an > observer programatically, then saved both the observed and observer objects > with encodeObject:forKey:, will decodeObjectForKey recreate that observer for > me, or do

Question about aliasing (analog clock hands)

2009-12-03 Thread Eric E. Dolecki
I have 2 UIImageView, each containing a PNG (about 2 pixels wide for the images). When I rotate these around, the edges of the PNGs look terrible and I was trying to get MORE anti-aliasing to happen to smooth out the jaggies. hourHand.layer.anchorPoint = CGPointMake( 0.0, 0.9 ); *//TOTAL GUESS

Re: Lan/Airport Notification

2009-12-03 Thread Jens Alfke
On Dec 3, 2009, at 9:02 AM, Stefan Lehrner wrote: is it possible to get notified when Airport or Lan is available? I wonder how I can be notified by the system whenever my Airport goes online or when my Lan Connection will be established? SystemConfiguration.framework. Check the documenta

Re: Application crashing on iPod Touch, not on iPhone

2009-12-03 Thread Kyle Sluder
2009/12/3 Sébastien Stormacq : > Frame 15 is the last line from my code, it calls [NSURL urlWithString] (frame > 14) Then we need to see the code for -loadStreamingURL, and you need to make sure that the argument to -URLWithString: is a valid NSString instance. That means using the debugger. --

Re: Application crashing on iPod Touch, not on iPhone

2009-12-03 Thread Jens Alfke
On Dec 3, 2009, at 11:14 AM, Sébastien Stormacq wrote: I totally agree with you Here is my stack trace Frame 15 is the last line from my code, it calls [NSURL urlWithString] (frame 14) 9 libobjc.A.dylib 0x6e54 objc_exception_throw + 104 10 CoreFoundation

Re: image not found

2009-12-03 Thread Kyle Sluder
On Thu, Dec 3, 2009 at 11:19 AM, Torsten Curdt wrote: > But that means the difference should not really matter here then. You are correct. The problem here is not because of using @executable_path instead of @loader_path. The problem is because the binary was moved outside of Contents/MacOS whe

Re: Reboot? Slow First Run

2009-12-03 Thread Jens Alfke
On Dec 3, 2009, at 9:55 AM, gMail.com wrote: I can't really know whether I can modify that schema and unify those 10,000 files in one. I will ask the supervisor. Those files contain UT8 text and other data like images... You don't have to modify any schema. Just build an index file, e.g.

Re: image not found

2009-12-03 Thread Torsten Curdt
On Thu, Dec 3, 2009 at 18:15, Nick Zitzmann wrote: > > On Dec 3, 2009, at 3:33 AM, Torsten Curdt wrote: > >> The Sparkle frameworks uses @loader_path while the FeedbackReporter >> uses @executable_path instead. >> >> What's the difference? > > @executable_path is a macro pointing to the path of th

Re: Application crashing on iPod Touch, not on iPhone

2009-12-03 Thread Sébastien Stormacq
I totally agree with you Here is my stack trace Frame 15 is the last line from my code, it calls [NSURL urlWithString] (frame 14) 0 libSystem.B.dylib 0x0008e7e0 __semwait_signal_nocancel + 24 1 libSystem.B.dylib 0x0008e128 nanosleep$NOCANCEL + 100 2 li

Re: totally baffled by "odoc" apple event failing on launch

2009-12-03 Thread David M. Cotter
>>> there is a component we must load (a plugin) that is outside of our control >> that runs an event loop, before we have our NSApp initialized (therefore it >> is >> unable to handle the :openDocuments call) > So, just to clarify - the "odoc" apple event is NOT failing on launch. It's > just t

Set Continuous Feedback and Duration For UISlider:setValue:animated

2009-12-03 Thread Chunk 1978
i would like to slow down the setValue:animated animation duration from it's default (which i assume is 0.25f) to about 2 seconds. additionally, i need to have continuous feedback of the slider's value while it is animating. how can this be accomplished? i assume i'll have to write my own method

Re: Reboot? Slow First Run

2009-12-03 Thread gMail.com
Thank you Bill, I can't really know whether I can modify that schema and unify those 10,000 files in one. I will ask the supervisor. Those files contain UT8 text and other data like images... I know spotlight is fast enough, but here we need to read the content of the files and process it. As far

Re: Debugging stack traces

2009-12-03 Thread Sean McBride
On 12/3/09 11:55 AM, Graham Cox said: >When I get a stack trace in a crash report, as exampled below, can I use >the offsets (+71, +50) to locate the relevant line in the source code? >What do these numbers actually mean? > >1 com.apptree.drawkit0x001c7bb9 -[DKDrawableObject >enc

Re: Reboot? Slow First Run

2009-12-03 Thread Greg Guerin
Shawn Erickson wrote: The OS maintains a cache of data in RAM as much as it can while running. This "universal buffer cache" caches pages of data from loaded files, applications, etc. With Xcode dev tools installed, a 'purge' command is added. It will purge this cache, making it easier to

Re: Lan/Airport Notification

2009-12-03 Thread Nick Zitzmann
On Dec 3, 2009, at 10:02 AM, Stefan Lehrner wrote: > is it possible to get notified when Airport or Lan is available? It's possible. > I wonder how I > can be notified by the system whenever my Airport goes online or when my > Lan Connection will be established? There are IOKit notifications

Text insertion point not blinking

2009-12-03 Thread Gideon King
Hi all I have a text view which has the drawsBackground: set to NO, and now the insertion point is not blinking - it's just a solid line. If I turn the drawsBackground: on, it does blink as expected. Any suggestions as to why this could be happening? Thanks Gideon_

Does initWithCoder re-create observers made with addObserver?

2009-12-03 Thread David Hirsch
I'm trying to track down a bug. The subject says it all: If I've created an observer programatically, then saved both the observed and observer objects with encodeObject:forKey:, will decodeObjectForKey recreate that observer for me, or do I need to do it myself? __

Re: image not found

2009-12-03 Thread Nick Zitzmann
On Dec 3, 2009, at 3:33 AM, Torsten Curdt wrote: > The Sparkle frameworks uses @loader_path while the FeedbackReporter > uses @executable_path instead. > > What's the difference? @executable_path is a macro pointing to the path of the executable binary, and nothing else. @loader_path is a macr

Re: NSSpellChecker and checkSpellingOfString problems

2009-12-03 Thread Knut Lorenzen
Am 03.12.2009 um 17:55 schrieb Keith Blount: > I have an NSTextView subclass that provides a custom contextual menu by > overriding -menuForEvent:. Because I override this, I have to provide any > menu items I want to retain from the original menu myself. Can't you simply use something like NS

MacResearch Tutorial on beginning a Cocoa/iPhone app.

2009-12-03 Thread lbland
hi- Occasionally I see a trouble-getting-started post on this list. There is a great Cocoa/Xcode/iPhone tutorial on MacResearch: Using VVI for Graphing on iPhone http://www.macresearch.org/using-vvi-graphing-iphone Explaining in precise detail how to make a simple iPhone app. I may be a bit pa

Core Data: insertNewObjectForEntityForName doesn't return my custom subclass during migration

2009-12-03 Thread Sean McBride
Hi all, The docs for NSEntityDescription say "initWithEntity:insertIntoManagedObjectContext: returns an instance of the appropriate class for the entity". This seems to be mostly true. Yet when I do: [NSEntityDescription insertNewObjectForEntityForName:@"FooBar" inManagedObjectContext:moc];

Lan/Airport Notification

2009-12-03 Thread Stefan Lehrner
Hi, is it possible to get notified when Airport or Lan is available? I wonder how I can be notified by the system whenever my Airport goes online or when my Lan Connection will be established? Thanks for any hints and tipps... BR, Stefan ___ Cocoa-d

Re: Application crashing on iPod Touch, not on iPhone

2009-12-03 Thread Matt Neuburg
On Thu, 03 Dec 2009 13:37:32 +0100, S?bastien Stormacq said: >For your curiosity : [NSURL urlWithString] is the culprit : it throws a NSException on the Touch when there is no network, not on the iPhone ;-) That's hard to believe. To transform a string into a URL should have no dependency on whet

NSSpellChecker and checkSpellingOfString problems

2009-12-03 Thread Keith Blount
Hello, I have an NSTextView subclass that provides a custom contextual menu by overriding -menuForEvent:. Because I override this, I have to provide any menu items I want to retain from the original menu myself. Mostly, that's not a problem, but I want to keep the spell checking options at the

Re: Finding a word from a character position

2009-12-03 Thread Gideon King
Perfect, thanks Douglas. > On Dec 3, 2009, at 1:57 AM, Gideon King wrote: > >> I'm trying to emulate the double-click behavior of an NSTextView where it >> selects the word under your mouse. >> >> I am able to set the insertion point on a single click using the >> characterIndexForPoint: metho

Re: Finding a word from a character position

2009-12-03 Thread Douglas Davidson
On Dec 3, 2009, at 1:57 AM, Gideon King wrote: I'm trying to emulate the double-click behavior of an NSTextView where it selects the word under your mouse. I am able to set the insertion point on a single click using the characterIndexForPoint: method. What's the best way to go from ther

Re: Reboot? Slow First Run

2009-12-03 Thread Bill Bumgarner
On Dec 3, 2009, at 8:10 AM, gMail.com wrote: > Thanks. I supposed that I was loading from the cache. It's a pity. > It was too nice to load 10,000 files x 4KB each, in only 1.2 secs. > Maybe one day, when I will be not longer on this planet :-) > Just to mention I run MacOSX 10.6.2 and I build ag

Re: Reboot? Slow First Run

2009-12-03 Thread gMail.com
Thanks. I supposed that I was loading from the cache. It's a pity. It was too nice to load 10,000 files x 4KB each, in only 1.2 secs. Maybe one day, when I will be not longer on this planet :-) Just to mention I run MacOSX 10.6.2 and I build against 10.5 (32 bit). Anyway I would like to say a thin

Re: totally baffled by "odoc" apple event failing on launch

2009-12-03 Thread Matt Neuburg
On Wed, 2 Dec 2009 16:14:30 -0800, "David M. Cotter" said: >there is a component we must load (a plugin) that is outside of our control that runs an event loop, before we have our NSApp initialized (therefore it is unable to handle the :openDocuments call) So, just to clarify - the "odoc" apple e

Re: Reboot? Slow First Run

2009-12-03 Thread Shawn Erickson
On Thu, Dec 3, 2009 at 3:47 AM, gMail.com wrote: > Hi, > my app executes a given task in 1.2 seconds, all the time. I can quit the > application, relaunch it, run the same task several times and it always > takes 1.2 seconds. > But if I reboot the machine, I launch the application and run the same

Re: Reboot? Slow First Run

2009-12-03 Thread Jerry Krinock
On 2009 Dec 03, at 04:45, gMail.com wrote: > I add some important info: > I have now duplicated the folder containing the 10,000 files and even if I > don't reboot, the first scan over this new folder takes 13 seconds too. So, > I guess the OS caches some info about the files I have already read.

RE: Reboot? Slow First Run

2009-12-03 Thread Luca Ciciriello
Hi Leonardo. Which version of OS are you using? Which architecture (32/64 bit), Which version of compiler? I don't know if this matter, but is useful for me in order to try to reproduce your behaviour. Luca. > Date: Thu, 3 Dec 2009 12:47:27 +0100 > From: mac.iphone@gmail.com > To: c

Reboot? Slow First Run

2009-12-03 Thread gMail.com
I add some important info: I have now duplicated the folder containing the 10,000 files and even if I don't reboot, the first scan over this new folder takes 13 seconds too. So, I guess the OS caches some info about the files I have already read. Is anyone who can explain that better? Can I avoid t

Re: Application crashing on iPod Touch, not on iPhone

2009-12-03 Thread Sébastien Stormacq
Actually the crash log is very weird. But I managed to find an iPod and to reproduce the problem. The end of the story - Apple is right : application crashes on iPod and not iPhone when there is no network connectivity. The crash log they provided me is totally different from what I get but t

Re: Reboot? Slow First Run

2009-12-03 Thread Mike Abdullah
On 3 Dec 2009, at 11:47, gMail.com wrote: > Hi, > my app executes a given task in 1.2 seconds, all the time. I can quit the > application, relaunch it, run the same task several times and it always > takes 1.2 seconds. > But if I reboot the machine, I launch the application and run the same task

Reboot? Slow First Run

2009-12-03 Thread gMail.com
Hi, my app executes a given task in 1.2 seconds, all the time. I can quit the application, relaunch it, run the same task several times and it always takes 1.2 seconds. But if I reboot the machine, I launch the application and run the same task for the first time, it takes 13 seconds! This problem

Re: Getting reference to NSWindowController from subviews

2009-12-03 Thread Mike Abdullah
Bear in mind that if one of your views needs to know about the window controller, it's a good sign of a poor design. You're probably better off giving the view in question its own -delegate or -dataSource property which can be set to the window controller. On 3 Dec 2009, at 02:09, PCWiz wrote:

Re: image not found

2009-12-03 Thread Torsten Curdt
Hm... The Sparkle frameworks uses @loader_path while the FeedbackReporter uses @executable_path instead. What's the difference? Reading http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/dyld.1.html it looks like FeedbackReporter should also use @loader_path but

Finding a word from a character position

2009-12-03 Thread Gideon King
Hi I'm trying to emulate the double-click behavior of an NSTextView where it selects the word under your mouse. I am able to set the insertion point on a single click using the characterIndexForPoint: method. What's the best way to go from there to selecting the word (or space) where they h

ParseKit BNF grammar

2009-12-03 Thread Mikkel Eriksen
Hi all I'm working on a ParseKit parser for GEDCOM, but I'm having a weird issue. My very simple preliminary grammar looks like this (similar to Backus-Naur): @start = record+; record = level ( tag value | xref tag ) crlf; level = /^\d/; tag = /[A-Z]{3,4}/; value

Re: Retrieving informations about Network Interfaces

2009-12-03 Thread Jean-Daniel Dupas
Le 3 déc. 2009 à 09:55, Zephyroth Akash a écrit : > Hi, > > I need to extract some informations about Network Interfaces, like getting > IOInterfaceExtraFlags , IOInterfaceFlags ... etc. > > After some search I've found that the related values are defined in > bsd/net/if.h ... but where is th

Retrieving informations about Network Interfaces

2009-12-03 Thread Zephyroth Akash
Hi, I need to extract some informations about Network Interfaces, like getting IOInterfaceExtraFlags , IOInterfaceFlags ... etc. After some search I've found that the related values are defined in bsd/net/if.h ... but where is this file ? I can't find the framework that contains these def