Honestly, I don't care how the data is stored, as long as I've got
some reliable place to store file-specific data such that it can be
reliably tied to the file (cross-user/cross-computer concerns are
primary, cross-platform concerns are secondary - I'm only writing this
for OS X
On 24/04/2008, at 4:14 PM, Daniel DeCovnick wrote:
Honestly, I don't care how the data is stored, as long as I've got
some reliable place to store file-specific data such that it can be
reliably tied to the file (cross-user/cross-computer concerns are
primary, cross-platform concerns are
Hi Mike,
try to check continuously Update Value in the bind options.
Ferhat
On Apr 22, 2008, at 9:26 PM, Mike Manzano wrote:
I have an application that periodically needs to save content
contained in an NSTextView. The text view is bound to a Core Data
managed object. Currently, I am
I read that. I'm not sure I completely know what the resource map is.
The resource manager keeps track of a table of resource types, and
subtables of resource names or ID's as the key in a key-value pair,
where the resources themselves are the values. Is that what the map
is, that whole
Folks;
I have a CoreData model working reasonably under Tiger now moving to
aggressive testing on Leopard.
I'm seeing something I don't believe I've never seen on Tiger...
The application has only one ManagedObjectContext. This is
established during the -awakeFromNib of the NSApp
Hi Jeff,
thanks again for answering so quickly
On Apr 23, 2008, at 4:25 PM, Jeff LaMarche wrote:
When I try to access your WSDL, I get:
Server Error in '/DummyWS' Application.
Sorry about that, should be fixed now. Seems the development box ran
out of diskspace. :-/
Generally, though, I
Well it's all working now again at least.
I downloaded the new beta4 of the iPhone SDK (build 1071 of XCode).
I edited my project file (after taking a copy of it) and deleted
user.bpxuser and user.modexvx files
And probably the key thing... rebooted
hmmm... should have rebooted first.
Sorry for sending the previous mail immaturely. I hit option-shift-D
which I expected to give me the dictionary to look up my spelling, but
which of course delivered my mail. ;-) The previous mail was complete,
except for one suspicion:
On Apr 24, 2008, at 10:31 AM, Niklas Saers wrote:
It has often been asked on this mailing list how to get undo working
with continuous controls, and the generally agreed upon answer seems
to be to use NSNotificationQueue to coalesce notifications under
NSPostWhenIdle. In fact in a previous thread it was said that this
method would work
Am 24.04.2008 um 09:16 schrieb Daniel DeCovnick:
I read that. I'm not sure I completely know what the resource map
is. The resource manager keeps track of a table of resource types,
and subtables of resource names or ID's as the key in a key-value
pair, where the resources themselves are
Am 24.04.2008 um 06:28 schrieb Graham Cox:
On 24 Apr 2008, at 12:59 pm, Chris Suter wrote:
The limits for resource forks are the same as for data forks
Not true - the ResourceMap contains some 24-bit pointers, or at
least it used to, as well as some 16-bit length fields as well.
Unless
On Wed, Apr 23, 2008 at 3:41 PM, Ewan Delanoy
[EMAIL PROTECTED] wrote:
The reason is, I know how to produce easily the double-click behaviour
with Cocoa but not the (better) click behaviour
It's not really single click behaviour -- it's a classic
master-detail interface, i.e., the lower
The tips are appreciated. AFAICT, the limit on total resource sizes is
within a kB or 2 of 2 or 4 GB, with the limitation that the last
resource must start within the first ~16 MB. Given the fact that the
files I'm opening are in the 1-300k range, I suspect I have bigger
problems than the
On Thu, Apr 24, 2008 at 12:46 AM, Chris Suter
[EMAIL PROTECTED] wrote:
On 24/04/2008, at 2:28 PM, Graham Cox wrote:
On 24 Apr 2008, at 12:59 pm, Chris Suter wrote:
The limits for resource forks are the same as for data forks
Not true - the ResourceMap contains some 24-bit
I have implemented a NSButtonCell subclass in the usual way to catch
mouse tracking. I get the startTrackingAt and stopTracking messages
called correctly on the click of the mouse. However the
startTrackingAt is not quickly called again if I quickly click again
the mouse, such as if I did
On Apr 24, 2008, at 6:08 AM, Daniel DeCovnick wrote:
The tips are appreciated. AFAICT, the limit on total resource sizes
is within a kB or 2 of 2 or 4 GB, with the limitation that the last
resource must start within the first ~16 MB. Given the fact that the
files I'm opening are in the
I am attempting to search within an SQL database. (coreData)
The predicate below filters the search properly in Leopard, but not in
Tiger. Have I missed something?
[NSPredicate predicateWithFormat: @presentation_type == 0 AND (ANY
toSlides.slide_text LIKE[cd] %@), [NSString
On 24 Apr 2008, at 16:10, Dave Jewell wrote:
On 24 Apr 2008, at 8:42 am, Graham Cox wrote:
Aside: your ivars shouldn't start with an underscore - Apple reserves
such names for its own classes.
Interesting - I was unaware of that convention. Dietmar Planitzer
provides something of an
On Thu, Apr 24, 2008 at 4:28 PM, Daniel DeCovnick [EMAIL PROTECTED] wrote:
Er... either my calculator's broken or (65535 - 30 - 8 )/12 = 5458, not
2727, where 30 and 8 are the resource map header and a single reference
type.
However, floor((32767 - 30 - 8) / 12) = 2727. Maybe the use of a
Is the $ usage an extension? That doesn't sound like regular C to me.
Alastair Houghton wrote:
On 24 Apr 2008, at 16:10, Dave Jewell wrote:
On 24 Apr 2008, at 8:42 am, Graham Cox wrote:
Aside: your ivars shouldn't start with an underscore - Apple reserves
such names for its own classes.
Folks,
I need help figuring out this problem. Basically, I want to run a
WebView in a modal dialog, but WebView's don't work in
NSModalPanelRunLoopMode. So, I have been trying unsuccessfully to
fake a modal run loop while running it in NSDefaultRunLoopMode. This
is my latest attempt:
//
As far as I know NSURLCache only works for HTTP/HTTPS without
extending the class yourself for other protocols. I think you might
do better just using a mutable dictionary and saving that to disc with
your data objects. The key would be your URL.
On Apr 23, 2008, at 4:14 PM, Stephan
On 24 Apr 2008, at 18:17, John Stiles wrote:
Is the $ usage an extension? That doesn't sound like regular C to me.
Well it's implementation defined, if that's what you mean, yes. I
think KR allowed it, then ANSI disallowed it---I think (this is all
from memory)---but C99 allows any
On 23 Apr '08, at 3:14 PM, Stephan Burlot wrote:
I want to cache local files (images) so I cache a NSData using
[NSURLCache storeCachedResponse]
If I try to fetch it, the cachedResponseForRequest:request is always
nil under 10.5
This works under 10.4.
NSURLCache was rewritten in 10.5;
On 24 Apr '08, at 1:34 AM, David Wilson wrote:
Well it's all working now again at least.
I downloaded the new beta4 of the iPhone SDK (build 1071 of XCode).
I've been having the same problem in many of my projects ever since
installing the first i* SDK, so I suspect this is/was a bug
On Thu, Apr 24, 2008 at 4:28 PM, Hamish Allan wrote:
Maybe the use of a
signed int is the well-known bug Uli referred to.
Indeed it is.
Tech Note TB18 (1988)
http://beta.devworld.apple.com/technotes/tb/tb_18.html
___
Cocoa-dev mailing list
On 23 Apr '08, at 8:42 AM, an0 wrote:
Nothing appeared when I opened a saved file, and log said:
2008-04-23 23:33:44.127 EasyDraw[631:10b] *** -[NSDocumentController
localizedFailureReason]: unrecognized selector sent to instance
0x11b210
Something sent -localizedFailureReason: to an
I thought I'd share this with those of you who want an alternative to
NSLog(). If you want your debugging output to always go to the
debugger console without all the date and time stamping info, just
place this bit of code in your AppName_Prefix.pch file. Then define
the __DEBUG_OUT__
On Apr 23, 2008, at 1:08 PM, douglas a. welton wrote:
Bob Randall,
If all you want to do is slap some arbitrary text over a movie, I
would suggest that you take a look at using QTMovieLayer and
CATextLayer as the mechanism for doing this. I don't have any code
that I can share with
Hi,
I'm new to Cocoa.
I would like to write a server-side using Java-RMI (or maby sockets) and
client using Objective-C.
Can someone point me in the right direction?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
Steve,
What's the error, what's in it's userInfo dictionary, and if you use:
future-break +[NSError errorWithDomain:code:userInfo:]
in gdb, what's the stack trace from the point that creates the error ?
--
-Ben
___
Cocoa-dev mailing list
Ohh this is so good, I'm happy!!!
Thanks!
On to 24 apr 2008, at 21.53, Don Arnel wrote:
I thought I'd share this with those of you who want an alternative
to NSLog(). If you want your debugging output to always go to the
debugger console without all the date and time stamping info, just
Le 24 avr. 08 à 20:51, Jens Alfke a écrit :
On 24 Apr '08, at 1:34 AM, David Wilson wrote:
Well it's all working now again at least.
I downloaded the new beta4 of the iPhone SDK (build 1071 of XCode).
I've been having the same problem in many of my projects ever since
installing the
Sorry, I was a little bit to quick there...
I get an error
169: DBOut( @Hello World! );
/AppController.m:169: error: syntax error before ']' token
Did I miss something?
On to 24 apr 2008, at 23.24, Mohsan Khan wrote:
Ohh this is so good, I'm happy!!!
Thanks!
On to 24 apr 2008, at
On 25/04/2008, at 6:42 AM, Optical Ali wrote:
Hi,
I'm new to Cocoa.
I would like to write a server-side using Java-RMI (or maby sockets)
and
client using Objective-C.
Can someone point me in the right direction?
I would suggest using XML-RPC, which is well supported on both Java
and OS
There should be two hash characters (##) before the __VA_ARGS__.
That's a gcc feature such that, if the macro is used without passing
arguments beyond the format string, then the comma is removed from
the expansion.
-Ken
On Apr 24, 2008, at 5:20 PM, Mohsan Khan wrote:
Sorry, I was a
If you cut and pasted the code make sure each line begins with the #
character. If not then your mail reader wrapped a long line onto the
next line.
On Apr 24, 2008, at 6:20 PM, Mohsan Khan wrote:
Sorry, I was a little bit to quick there...
I get an error
169: DBOut( @Hello World! );
Good point! I've only used it with arguments so far. Here is a better
version:
#ifdef __DEBUG_OUT__
#define DBOut(fmt, ...) fprintf(stderr, %s\n, [[NSString
stringWithFormat:(fmt), ## __VA_ARGS__]
cStringUsingEncoding:NSUTF8StringEncoding])
#define DBCOut(fmt, ...) fprintf(stderr, fmt,
What happens in a release build in this situation?
if ( TRUE == someCondition )
DBOut( @someCondition happened );
[foo someMethod];
I'd recommend the
#define DBOut(fmt, ...)\
do\
{\
fprintf(etc);\
}\
while ( false )
pattern lest you get different results in DEBUG vs non DEBUG code
Am 24.04.2008 um 22:14 schrieb Bob Smith:
In my case all I want to do is be able to add a scrolling text
overlay to whatever video is being played. My app is an
informational video kiosk display driver, it's meant to run mostly
unattended from playlists of images and pre-recorded video,
Thanks Tom.Actually, it's an iPhone client, but we cannot talk about that:(
On Thu, Apr 24, 2008 at 5:27 PM, Tom Davies [EMAIL PROTECTED] wrote:
On 25/04/2008, at 6:42 AM, Optical Ali wrote:
Hi,
I'm new to Cocoa.
I would like to write a server-side using Java-RMI (or maby sockets) and
Am 24.04.2008 um 03:43 schrieb David Wilson:
My application doesn't launch when I click the run button in Xcode
(note it is NOT an iPhone app). It's an application to control USB
devices.
XCode tells me that the application has launched, yet it does not
appear in the doc.
HOWEVER
I have
On Apr 24, 2008, at 4:03 PM, Uli Kusterer wrote:
4) I think there's a sample on Apple's web site somewhere that draws
pushbuttons etc. on top of a movie (or maybe it was an OpenGL
scene?). Anyway, that approach might work for your movie, too.
The sample that does this uses Core Animation
I'm rewriting an old legacy app in Cocoa and have run into a
stumbling block. The app is supposed to support having multiple
windows open, but the window content is unrelated to the concept of a
document - which is the normal multiple window model. Instead the
windows provide a UI to
The do-while-false pattern is only necessary if you've got multiple
statements or are otherwise surrounding the statements with braces.
On Apr 24, 2008, at 5:43 PM, Herb Petschauer wrote:
What happens in a release build in this situation?
if ( TRUE == someCondition )
DBOut(
Hello all,
I am including a PDF document inside a document like so:
NSData *pdfData=[[NSData
alloc]initWithContentsOfFile:actualPath];
NSPDFImageRep *imageRep=[[NSPDFImageRep alloc]initWithData:pdfData];
[imageRep drawInRect:rect];
Works
Hi,
Is there a way to connect an NSOutputStream and NSInputStream together
with in-memory buffer?
So while the Input Stream is getting filled, the Output stream starts
pulling the data out.
The context of the problem is streaming. The generator creates the
sounds samples, and puts them
it's the example in the Core Animation Programming Guide, last
chapter. Source isn't available at the moment other than in the book.
It's text laid over a QCCompositionLayer that is running.
On Apr 24, 2008, at 7:03 PM, Uli Kusterer wrote:
4) I think there's a sample on Apple's web site
On Apr 24, 2008, at 4:03 PM, Uli Kusterer wrote:
Am 24.04.2008 um 22:14 schrieb Bob Smith:
In my case all I want to do is be able to add a scrolling text
overlay to whatever video is being played. My app is an
informational video kiosk display driver, it's meant to run mostly
unattended
On Apr 24, 2008, at 9:05 PM, Bob Smith wrote:
In my case all I want to do is be able to add a scrolling text
overlay to whatever video is being played. My app is an
informational video kiosk display driver, it's meant to run mostly
unattended from playlists of images and pre-recorded
Thank you for the reply, I did a sample that sets up the stream in
that fashion up to a degree.
So there should be 2 instances, right? One instance for the
NSInputStream and one instance for the NSOutputStream
OR
Should there be just ONE instance and then we cast it to NSInputStream
or
Yes, good point. I _thought_ there was a good example of why to use
the while false pattern but it's so far back in time that I can't
recall it. The only thing that I can find is
http://c-faq.com/cpp/multistmt.html which really doesn't apply in
this example.
Ah well, I know I've been burned by
Bob,
Scott took the words right out of my keyboard... ;^} Have you taken a
look at the QCTV sample code? It does almost exactly what you want.
regards,
douglas
On Apr 24, 2008, at 9:16 PM, Scott Anguish wrote:
On Apr 24, 2008, at 9:05 PM, Bob Smith wrote:
In my case all I want to do
On Apr 24, 2008, at 8:25 PM, vance wrote:
So there should be 2 instances, right? One instance for the
NSInputStream and one instance for the NSOutputStream
Yes, I would think so. The input stream to get data from wherever
the data is coming from and the output stream for wherever you want
Have Uniform Type Indicators (UTIs) been defined for VRML, X3d, of
POVray files?
Thanks in advance,
Christopher Henrich
[EMAIL PROTECTED]
mathinteract.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
Hi,
I'm currently trying to track down a deadlock. After adding a series
of layers, CoreAnimation deadlocks here on the main thread:
#0 0x958af4ee in semaphore_wait_signal_trap
#1 0x958b6fc5 in pthread_mutex_lock
#2 0x909f8d72 in CAContextCommitTransaction
#3 0x909f89bd
You could also show any other thread stuck trying to lock a mutex? I
assume there's another thread holding this lock or stuck trying to lock
something else.
Colin Cornaby wrote:
Hi,
I'm currently trying to track down a deadlock. After adding a series
of layers, CoreAnimation deadlocks here
It looks like NSUIHeartBeat could be attempting to lock something.
Although I could be wrong, it may not be related.
Here's the full stack trace across all threads.
(gdb) thread apply all bt
Thread 37 (process 13823 thread 0xf11b):
#0 0x958af506 in semaphore_timedwait_signal_trap ()
#1
On Thu, Apr 24, 2008 at 9:26 PM, Herb Petschauer [EMAIL PROTECTED] wrote:
Yes, good point. I _thought_ there was a good example of why to use
the while false pattern but it's so far back in time that I can't
recall it. The only thing that I can find is
http://c-faq.com/cpp/multistmt.html
On Apr 24, 2008, at 10:04 PM, Christopher Crawford wrote:
I'm trying to build a simple app that changes the login screen
background, I have everything right but I have no idea how i can
authorize the NSFileManager to move a file in the CoreServices
folder. I've looked online for examples
On Apr 24, 2008, at 7:38 PM, Colin Cornaby wrote:
It looks like NSUIHeartBeat could be attempting to lock something.
Although I could be wrong, it may not be related.
The render thread got stuck while depth sorting:
Thread 11 (process 13823 thread 0x8803):
#0 0x90a27d9c in
So there should be 2 instances, right? One instance for the
NSInputStream and one instance for the NSOutputStream
Yes, I would think so. The input stream to get data from wherever
the data is coming from and the output stream for wherever you want
it to go. I assumed you already had a
On Apr 24, 2008, at 11:18 PM, vance wrote:
So there should be 2 instances, right? One instance for the
NSInputStream and one instance for the NSOutputStream
Yes, I would think so. The input stream to get data from wherever
the data is coming from and the output stream for wherever you
On Thu, Apr 24, 2008 at 11:57 PM, Jens Alfke [EMAIL PROTECTED] wrote:
On 24 Apr '08, at 8:09 PM, Michael Ash wrote:
It's only useful for multi-statement macros.
And macros that use an 'if':
extern BOOL gVerboseMode;
#define LOG(X) if(gVerboseMode) NSLog(@value = %i,X);
Isn't
On 24/04/2008, Michael Ash [EMAIL PROTECTED] wrote:
Ah well, I know I've been burned by this but it may have just been a
by product of using it for a different kind of macro under a different
compiler.
It's only useful for multi-statement macros. The idea is that a macro
looks
65 matches
Mail list logo