Hi John,
The difficulty with this kind of display is simulating the persistence
of the old cathode-ray tubes in a realistic way. Just drawing a shadow
is unlikely to work, though it might help get you some way by creating
the glow caused by scattering.
One possibility is to use OpenGL.
Files shown in red can't be found at the path given.
If you do a Get Info on the file you can correct the path. If it's a
framework shared by several projects it's worth putting it in a
location that won't move and can be reached by them all. You might
also want to look into setting up a
I should have mentioned that the Frameworks in question are the System
frameworks. And they are Found Fine by The original App. (which Runs just Fine.)
Sent from my iPod
On Sep 26, 2009, at 11:54 PM, Graham Cox graham@bigpond.com wrote:
Files shown in red can't be found at the path given.
John, the code below is similar to my oscilloscope view in principle -
here though I just use an NSImage to buffer the history, as it's
simplest, but for performance you might try something more
sophisticated. Also, when drawing the history, this just uses a linear
opacity ramp - it might
Hi,
When I alloc and init a NSString the following way, there is warning
that:
Potential leak of an object allocated on line 526 and stored in
sizeDisp.
1. Method returns an Objective-C object with a +1 retain count
(owning reference).
2. Object returned to caller as an owning reference
I can't really give you a much better analysis than the static
analyzer is giving you. If you read the Memory Management Guide for
Cocoa you will see that only methods starting new or alloc or
containing copy should return objects transferring a retain count (but
please actually read the
Hello again.
It looks like I've got more info on the issue. I've performed some
additional investigation and figured out that if you substitute the
lines
NSInputStream* stream = [NSInputStream inputStreamWithFileAtPath:
filePath];
[request setHTTPBodyStream: stream];
with
Hi again - you got me going now! ;-)
Occurs to me that there's no need to store more than one buffered
image (actually really obvious once it dawned on me). Checking the
OpenGL approach, this is what it does also - just one history
buffered image, which is then drawn into the new image at
ERG Consultant wrote:
I should have mentioned that the Frameworks in question are the
System frameworks. And they are Found Fine by The original App.
(which Runs just Fine.)
Nevertheless, Graham has correctly stated the reason that items show
up in red: Xcode can't find them where it
Paul, thanks for such an exhaustive answer!
Here are answers to your questions:
1. My case is the simple one -- I'm rendering all text layers at once.
2. Yes and no. As I said, I am implementing the cross-fade effect,
when one text fades out and another text fades in. The texts can be of
the same
I've got an app that worked on Leopard. I ported it to Snow Leopard SDK 10.6,
and now it works on Snow Leopard, but it doesn't work correctly on Leopard
anymore. I haven't changed anything that ought to affect this.
It's an app with a foreground gui that writes an XML coredata store. A
I've got a Document type program,
the windows are structured like this:
Window - ContentView - SplitView - two CustomViews - one of them
is Bordered Scroll view (outlineView) -Outline View
i have one instance of Outline View called myOutlineView, so no
matter how many documents are
On 28/09/2009, at 12:04 AM, jon wrote:
i have one instance of Outline View called myOutlineView, so no
matter how many documents are displayed on the screen, there is
only one myOutlineView instance,
I'm pretty sure that is never going to work. If I read you correctly,
you have a
With a second thought, I think it would do perfectly with simply
averaging ALL channels, R, G, B, and A, for this cross-fade effect.
So I am reformulating my questions as follows: How do I produce the
blending mode when the foreground and background colors are averaged
channel-wise, for all
I am probably not describing it accurately,I'll try to understand
and describe what is going on more accurately in a bit, more likely,
i have one set of data, and each time a new window is open, it is
creating another instance of the outline view, i have not found away
to get at
Hi
I may have solved the problem described above.
The method glyphAtIndex returns two glyphs. The first one is actually
the correct glyph for the surrogate character. The next one is zero.
If someone knows a better method to obtain glyphs, without using the
LayoutManager, I am glad to
On Sep 27, 2009, at 7:04 AM, jon wrote:
so far i can find the chain of windows, like this, but i can't
figure out how to go deeper into them to be able to udpate the
custom view down deep maybe i'm approaching it wrong too...
The best way to do this is to use NSNotification. Post
On Sep 27, 2009, at 2:25 AM, Sergey Shapovalov wrote:
This makes me think that chunked upload from stream via
NSURLConnection has been broken in iPhone OS 3.x. Unfortunately, in
real life I can't upload my file by using setHTTPBody instead of
setHTTPBodyStream because it's too big to
On Sep 27, 2009, at 2:03 AM, Nick Rogers wrote:
1. Method returns an Objective-C object with a +1 retain count
(owning reference).
It means exactly what it says. The string was created by -alloc, so
you own a reference so it, so you need to call -autorelease on it
before returning it.
I need to create an app the is auto downloaded and installed from a
web site when the user clicks a web page button.
The app needs to be installed so that it always runs when the user
logs in.
The app needs to periodically (by user preference setting) connect to
a web server.
The app
Hi,
Today I read this in wikipedia: (http://en.wikipedia.org/wiki/Core_Animation)
Animated sequences execute in a thread independent from the main run
loop, allowing application processing to occur while the animation is
in progress.
However, in my experience, Core Animation animations do not
On Nov 14, 2009, at 9:21 AM, David Blanton wrote:
I need to create an app the is auto downloaded and installed from a
web site when the user clicks a web page button.
It can be downloaded when the user clicks a button, but of course it
can't automatically run or be installed that way;
Hi,
From a method in my AppController class I'm calling a function in
another file as follows:
In AppController in init method:-
[self initialDriveList];
In AppController in initialDriveList method:
//some code here
[self volumeList];
// rest of the code here
In AppController in volumeList
There is very little documentation on NSRuleEditor. :(
First, you need to distinguish between a 'criterion' and a 'display
value' although they may be the same kind of classes. The criterion is
a kind of identifier and the display value is what is actually shown.
It is also helpful to think
On 27 Sep 2009, at 16:51, Anders Lassen wrote:
I may have solved the problem described above.
The method glyphAtIndex returns two glyphs. The first one is
actually the correct glyph for the surrogate character. The next one
is zero.
Indeed, the system generates a special NSNullGlyph in
On Sep 27, 2009, at 10:11 AM, Navneet Kumar wrote:
// Shall I do CFRelease(outputVolumeName); here?
Yes. You have to call CFRelease on any reference you got via a
xxCopyxx or xxCreatexx function.
—Jens___
Cocoa-dev mailing list
On 27 Sep 2009, at 10:03, Nick Rogers wrote:
Hi,
When I alloc and init a NSString the following way, there is warning
that:
Potential leak of an object allocated on line 526 and stored in
sizeDisp.
1. Method returns an Objective-C object with a +1 retain count
(owning reference).
2.
Take a look at this movie, which was taken on Leopard:
http://shlok.s3.amazonaws.com/20090927-ca-problem.mov
The blue rectangle is a layer-backed NSView that is animated using
Core Animation. The problem is that the animation halts while the main
loop waits for the mouse to get released
ok, after thinking and analyzing what was going on, everytime i make
a new document in the running app, it created a new instance of the
window and all related stuff in the window including myOutlineView.
and then my dataSource in code remained the same that fills out these
outline
Jens -
I am not sure from your response how the app will run when the user
logs in.
Should not the app be installed in a particular location so that it
starts when the user logs in?
And, does this not imply that the user should not have the option of
specifying where the app is
Hi,
Am 14.11.2009 um 22:25 schrieb David Blanton:
Should not the app be installed in a particular location so that it
starts when the user logs in?
You can add any app, located at any location (nearly at any) to the
Startup Items of a user and the app gets started. No need to be in a
On Sep 27, 2009, at 11:19 AM, jon wrote:
the question it appears to me is: that this treeController also
is made into multiple instances with each new Document, is there
an already defined loop of these? (a list of the open document's
NSTreeController *treeController;)
No. I think
On 14 Nov, 2009, at 22:25, David Blanton wrote:
Jens -
I am not sure from your response how the app will run when the user
logs in.
Should not the app be installed in a particular location so that it
starts when the user logs in?
And, does this not imply that the user should not have
Jens, thank you for your answer.
On Sep 27, 2009, at 7:59 PM, Jens Alfke wrote:
On Sep 27, 2009, at 2:25 AM, Sergey Shapovalov wrote:
This makes me think that chunked upload from stream via
NSURLConnection has been broken in iPhone OS 3.x. Unfortunately, in
real life I can't upload my
I believe the demos were called CocoaShuffle and Layer-Backed OpenGL
View. Can these be downloaded somewhere?
-Michael
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
I've got an app that worked on Leopard. I ported it to Snow Leopard
SDK 10.6, and now it works on Snow Leopard, but it doesn't work
correctly on Leopard anymore. I haven't changed anything that ought
to affect this.
What doesn't work ?
It's an app with a foreground gui that writes an XML
While sometimes you simply have no choice but to loop through your
windows, it isn't the first approach that comes to mind for this.
In the MVC design, you have separate views (one in each document) and
separate controllers (each one referenced from each document 1:1) but
what you do need
Hi,
I have a transparent black NSView that I layer over my window using
NSView's addSubview method. This works fine, but I want to make it so
that all clicks are captured by the NSView, because right now I can
click through to the superview underneath. I've already tried
returning NO for
This simplifies things a lot.
Just do an animated mix (crossfade) of the 2 text layers, including the
alpha channels, then simply composite the result over your background.
I'm not sure exactly which blend mode you'd use, but it will be a simple
alpha composite/blend/mix.
paulm
On 28/09/2009,
On 28/09/2009, at 12:36 PM, PCWiz wrote:
Hi,
I have a transparent black NSView that I layer over my window using
NSView's addSubview method. This works fine, but I want to make it
so that all clicks are captured by the NSView, because right now I
can click through to the superview
Is there a way for me to put my own, custom key into a Cocoa
application's Info.plist and have the application query that key's
setting?
I know that I can use the dictionaryWithContentsOfFile: method of an
NSDictionary to read an arbitrary, dictionary-like property list,
given its pathname.
On Sun, Sep 27, 2009 at 8:33 PM, Hippo Man apple.hippo...@gmail.com wrote:
Is there a way for me to put my own, custom key into a Cocoa
application's Info.plist and have the application query that key's
setting?
Yes, using -[NSBundle infoDictionary]. And of course you can get the
app's bundle
I have a drawing program that creates an NSBitmapImageRep and an
NSImage:
mImage = [[NSImage alloc] initWithSize: size];
mBitmap = [[NSBitmapImageRep alloc]
initWithBitmapDataPlanes: NULL
pixelsWide: (int)size.width
Hi,
I am currently working my way through Learn Objective C on the Mac,
and have typed one of the code samples into Xcode (ver 3.2), however
Xcode gives me a compile error, I think I have typed the code letter
for letter, so I was just wondering if someone could tell me why the
following
You can do this with a single accumulating bitmap.
1. Create a bitmap the size of your view filled with the background color
2. Fill the bitmap with the background color using an alpha = 1 / number of
steps
3. Draw the radar onto the bitmap
4. Draw the bitmap in the view
5. Go to step 2
(I have
Hi,
I'm currently working on a projet and I would like to have a custom
formatter. So, I write it and it's work fine. But when I type a string not
well-formed, my application display two error windows: one sheet and one
modal. I try to figure out why but without success. Someone have an idea ?
Hi guys,
I'm trying to implement a rather simple functionality in my app.
I have a Core Data entity class that represents invoices (Invoice).
This class has a to-many relationship with another Core Data entity
class that represents invoice lines (InvoiceLine). My Invoice class
also has a
http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSBundle_Class/Reference/Reference.html#//apple_ref/occ/instm/NSBundle/infoDictionary
Generally one does not put custom keys in the Info.plist. You might
want to consider a separate plist resource for
Hi
I need to do RSA encryption for that i need to have SecKeyRef object
for the public Key i have. Do i still need to add to the Keychain and
get from the Keychain as a SecKeyRef ?
Is there any way i can convert my publicKey value from NSData bytes to
SecKeyref ?
Please help with sample code
You named the method -addInvoiceLineObject:, but the property is
-invoiceLines? That's not going to work.
Also, NSController is sadly not KVO-compliant for dependent keys,
meaning that you can't override
+keyPathsForValuesAffectingValueForKey: and return a key path that
goes through an
On Sun, Sep 27, 2009 at 8:47 PM, Kiel Gillard kiel.gill...@gmail.com wrote:
Generally one does not put custom keys in the Info.plist. You might want to
consider a separate plist resource for your target and use NSBundle's
pathForResource:ofType: method to query the dictionary at the resulting
This is not a Cocoa question. Try re-reading the documentation and
asking a more appropriate list.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
Hi Mick,
The problem is that none of the functions here have prototypes, so the
use of 'colorName' comes before the definition of the function
'colorName', which then has not matched the compiler's assumptions.
Also, as given, the code spits out many warning about missing
prototypes,
There should be more than just that one line.
C requires that functions be declared before they are used; if they
are not, it assumes they take any number of parameters and return an
int. At the points at which you call colorName, the compiler hasn't
seen a declaration for colorName yet, but can
Overall your approach seems backwards. Why is your render thread
telling your view when to draw itself? The view should be in control
of when it is drawn. This fits in with your scenario, which appears
to be a clear-cut example of the producer-consumer model.
--Kyle Sluder
On 28/09/2009, at 1:47 PM, Kiel Gillard wrote:
Generally one does not put custom keys in the Info.plist.
Why not? As long as you're careful to ensure no conflict now or in the
future with Apple's defined keys, you'll be fine (so ensure you use a
key that couldn't possibly be used by
On 28/09/2009, at 2:23 PM, Graham Cox wrote:
On 28/09/2009, at 1:47 PM, Kiel Gillard wrote:
Generally one does not put custom keys in the Info.plist.
Why not? As long as you're careful to ensure no conflict now or in
the future with Apple's defined keys, you'll be fine (so ensure you
It is a digital art program where the user writes a description of an
image and the program creates it. Image creation can be a lengthy
process so I have the rendering thread periodically send a snapshot of
what it has done so far to the view. This is purely to entertain the
user while
Better question...
Why do it? It's easy enough to add your own.
I don't see what the issue is with just adding another. not like
they're hard to read and get access to the data.
On Sep 28, 2009, at 12:23 AM, Graham Cox wrote:
On 28/09/2009, at 1:47 PM, Kiel Gillard wrote:
Generally one
Duh. Not sure what I was thinking. Sorry, Hippo Man. Thanks for the
heads up, Graham and Kyle.
Kiel
Well, many thanks and much appreciation to all of you.
This is exactly the information I was looking for, and it's good to know
that there's a consensus that I _can_ put app-specific info
I strongly suggest reading the release notes on NSImage in the
Application Kit release notes for Snow Leopard.
it has many, many, changes. These won't translate to the Cocoa Drawing
Guide for a bit yet. Sadly.
On Sep 25, 2009, at 7:22 PM, John Horigan wrote:
I have a drawing program that
On Sun, Sep 27, 2009 at 10:02 PM, Scott Anguish sc...@cocoadoc.com wrote:
Why do it? It's easy enough to add your own.
It's also easy to add them to Info.plist… it seems like an appropriate
place to do so.
Perhaps Apple should clarify whether adding custom keys to Info.plist
is condoned.
On Sep 28, 2009, at 1:16 AM, Kyle Sluder wrote:
On Sun, Sep 27, 2009 at 10:02 PM, Scott Anguish sc...@cocoadoc.com
wrote:
Why do it? It's easy enough to add your own.
It's also easy to add them to Info.plist… it seems like an appropriate
place to do so.
Perhaps Apple should clarify
Done. rdar://problem://7257097
Also notes that the same collision issue exists for user defaults,
where AppKit stores window and splitter autosave information.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
not smooth enough?
On Sun, Sep 27, 2009 at 8:56 PM, Shlok Datye li...@codingturtle.com wrote:
Take a look at this movie, which was taken on Leopard:
http://shlok.s3.amazonaws.com/20090927-ca-problem.mov
The blue rectangle is a layer-backed NSView that is animated using Core
Animation. The problem
65 matches
Mail list logo