On Jun 21, 2008, at 12:16 AM, Alex Wait wrote:
When the app starts, I see the data as expected. However, when I
call my add
function, which gets the strings from the textFields and makes the
new "Data" object and adds it to the array, I do not see it in the
table.
Without seeing your add m
Apologies, I was using the defaults when I started Xcode. I have re-
uploaded with the setting changed as required.
Jason
On 21/06/2008, at 3:08 PM, Graham Cox wrote:
On 21 Jun 2008, at 2:56 pm, Jason Wiggins wrote:
http://members.optusnet.com.au/jwiggins/xcode/TestCase.zip
OK, it's d
You observation is helpful. I thought that I needed to create a view
class. I also thought that with this view class it would have an
IBAction (the popup button connected to this) with a switch
function, with each case setting an ivar which would be returned to
the controller class through
I know this is probably a really basic question about binding but it's sure
tripping me up right now.
I am making my way through "Cocoa Programming for Mac OS X" by Aaron
Hillegrass. It's an excellent book btw.
However the first time he has discusses binding is in the context of a
NSDocument arch
On 21 Jun 2008, at 2:56 pm, Jason Wiggins wrote:
http://members.optusnet.com.au/jwiggins/xcode/TestCase.zip
OK, it's downloading now. However, it's an Xcode 3.1 project which
isn't compatible with Xcode 3. If you want help, you need to help *us*
to help you. Set the project to be Xcode 2
Graham,
You observation is helpful. I thought that I needed to create a view
class. I also thought that with this view class it would have an
IBAction (the popup button connected to this) with a switch function,
with each case setting an ivar which would be returned to the
controller clas
Thanks Henry for your response. I'll have to read that a couple times
to let it sink into my thick skull. Not sure why the DL link is zero
length. Here is a better link: http://members.optusnet.com.au/jwiggins/xcode/TestCase.zip
The reason I connected things in the way I did was to understand w
On Jun 20, 2008, at 5:48 AM, Jason Wiggins wrote:
Hi everyone,
If possible, could someone please educate me on the fundamental
mistake in my understanding of use of classes/instances/
encapsulation/messaging. I have reread the Object-Oriented
Programming with Objective-C but didn't find m
Downloading your file produces an empty (zero bytes) file at least
when clicking your link and using Finder.
But one observation, in an MVC model with a pop-up button, the pop-up
button *is* the view, so I'm not sure in what way you have connected
this additional view - that sounds wrong.
With help from mmalc's binding examples I pretty much got the bindings
on my custom view working.
I uploaded the app to:
http://kip.sateh.com/BindableGradientViewWithObjectController/
http://kip.sateh.com/BindableGradientViewWithObjectController.zip
(First link is source, second is an arc
Hi everyone,
If possible, could someone please educate me on the fundamental
mistake in my understanding of use of classes/instances/encapsulation/
messaging. I have reread the Object-Oriented Programming with
Objective-C but didn't find my answer.
I have written a test program with three cl
I ran into a very similar problem just today.
There is an error in your code though, unrelated to my problem, but is
probably yours:
int selectedRow = [((NSNumber *)[tableView selectedRow]) intValue];
-selectedRow simply returns an int, so all that casting to an
NSNumber* and fetching i
Hi All,
I've got an NSTableView that displays the data in an NSMutableArray.
(The program is a to-do list.) I just tried adding a function to allow
you to delete an item: you select the item in the table and then click
delete. My code is as follows:
- (IBAction)deleteItem:(id)sender
{
int
Hi Rick,
Thanks, it's a good suggestion, but not my case.
The problem is, I have to batch convert thousands of slideshows.
The text information is not just subtitle, I have to highlight
different portion of text depend on time.
For example, text in parenthesis need to be highlighted:
00:13 (AA)AA
On Fri, Jun 20, 2008 at 9:11 PM, Brian Norwood <[EMAIL PROTECTED]> wrote:
> NSString *stuff = [NSString stringWithString:otherStuff];
>
> or
>
> NSString *stuff = [[NSString alloc] initWithString:otherStuff];
Those aren't equivalent statements, unless you're running under
garbage collection.
> Th
This isn't a question of difference; it's about usage.
In many cases, a class has both a "generator" class method (one that
returns an initialized instance of the class), as well as an instance
method that initializes an existing instance, and the two are
otherwise identical in usage. For e
Thanks, this worked like a charm.
On 21 Jun 2008, at 00:02, Trygve Inda wrote:
Thanks for your quick response. Sorry to ask such a stupid question,
but how do I add those. As frameworks?
Alex
On 20 Jun 2008, at 21:45, Trygve Inda wrote:
It seems to me that the linker can't find the OpenSSL
On Fri, Jun 20, 2008 at 1:00 PM, Milen Dzhumerov <[EMAIL PROTECTED]> wrote:
> I'm building a 3-pane interface and I have a NSTreeController managing the
> sidebar. My actual content displayed in the main view is bound to the
> "selection" of the tree controller. When I insert a new object into the
On Jun 20, 2008, at 6:27 PM, Graham Cox wrote:
I'm getting a crash sometimes when performing a Redo. Stack trace is
below - seems as if it's something internal to the Undo Manager
putting together the invocation. Any thoughts on how I can
investigate this further? The Undos and Redos up unt
On 20 Jun '08, at 4:13 PM, Damien Cooke wrote:
When creating a splash screen what condition do you use to decide
when to close your splash screen? Is there some obvious event that
is triggered that I can use?
Your app delegate's -applicationDidFinishLaunching: method is probably
the bes
I'm getting a crash sometimes when performing a Redo. Stack trace is
below - seems as if it's something internal to the Undo Manager
putting together the invocation. Any thoughts on how I can investigate
this further? The Undos and Redos up until this point work fine as far
as I can see.
On 20 Jun '08, at 4:00 PM, Grant Limberg wrote:
Currently, the user drags an existing image from their filesystem to
an NSImageView bound to an NSData attribute in the sqlite data
store. This causes the decompression from 1.5MB to 20MB.
That's an issue with NSImageView — when an image is
Hi all,
When creating a splash screen what condition do you use to decide when
to close your splash screen? Is there some obvious event that is
triggered that I can use? do I use [window orderOut:self] to close it?
Or is there a better way?
Thanks and Regards
Damien
__
On Jun 20, 2008, at 4:00 PM, Grant Limberg wrote:
Currently, the user drags an existing image from their filesystem to
an NSImageView bound to an NSData attribute in the sqlite data
store. This causes the decompression from 1.5MB to 20MB. As you
can see, this isn't exactly efficient. H
Currently, the user drags an existing image from their filesystem to
an NSImageView bound to an NSData attribute in the sqlite data store.
This causes the decompression from 1.5MB to 20MB. As you can see,
this isn't exactly efficient. Hence the question on package/bundle
creation. I'm
On Jun 20, 2008, at 3:43 PM, Grant Limberg wrote:
As far as I know, you can't store a raw jpeg in Core Data directly
without turning it into an NSData object first which in turn
decompresses it.
It sounds quite possible that Core Data only support images in the
form of NSData. That said
As far as I know, you can't store a raw jpeg in Core Data directly
without turning it into an NSData object first which in turn
decompresses it.
Someone correct me if I'm wrong!
Grant Limberg
[EMAIL PROTECTED]
LinkedIn: http://www.linkedin.com/in/grantlimberg
http://www.glsoftware.net
On Ju
On 2008 Jun, 20, at 15:28, Grant Limberg wrote:
Initially I was storing the data in Core Data. In my app, the user
has the ability to attach an image to a record in Core Data.
Unfortunately, changing from a JPEG to NSData inflates a 1.5MB JPEG
to over 20 MB.
I was planning on doing some
On Jun 20, 2008, at 3:28 PM, Grant Limberg wrote:
Initially I was storing the data in Core Data. In my app, the user
has the ability to attach an image to a record in Core Data.
Unfortunately, changing from a JPEG to NSData inflates a 1.5MB JPEG
to over 20 MB. In talking with some folks
Initially I was storing the data in Core Data. In my app, the user
has the ability to attach an image to a record in Core Data.
Unfortunately, changing from a JPEG to NSData inflates a 1.5MB JPEG to
over 20 MB. In talking with some folks at the local Cocoaheads
meeting on wednesday, one
This might help:
http://www.cimgf.com/2008/05/13/from-hacker-to-microisv-custom-file-formats/
In essence you create a folder and set attributes on it as you
suspected. Though these are referred to as packages instead of
bundles. Take a look at NSFileManager. You can create a directory that
On Jun 20, 2008, at 4:43 PM, Grant Limberg wrote:
Is there a way to create a new bundle from in Cocoa?
What I'd like to do is have a bundle in my app's Application Support
folder to store some data generated by the user in my app.
Since it's just data, I think you want a package rather than
Sometimes you just need someone to tell you to read *again* the man
page and actually try to understand what the words mean ;-)
Thanks Sherm!
-Martin
On Jun 20, 2008, at 12:25 PM, Sherm Pendley wrote:
On Fri, Jun 20, 2008 at 3:12 AM, Martin <[EMAIL PROTECTED]>
wrote:
Thanks for your answ
Is there a way to create a new bundle from in Cocoa?
What I'd like to do is have a bundle in my app's Application Support
folder to store some data generated by the user in my app. I see
plenty of methods to call to load bundles and check if a folder is a
bundle, but not creating them.
D
On 20 Jun '08, at 8:45 AM, Trygve Inda wrote:
I would embed a public key in my app and encrypt a data file on our
site
that the software needs to download periodically. This is mostly to
ensure
that file can not be modified or substituted except by us.
A good way to do this would be to us
IIRC, you need to link against Quartz.
On Jun 20, 2008, at 12:46 PM, Omar Qazi wrote:
On Jun 20, 2008, at 9:09 AM, Dan Uff wrote:
Hi,
I am trying to make a Cocoa application using a Quartz Composer
file as output. Everything works fine when I Simulate the app in
IB, but when I actually
> There would be a couple of ways that you could do it... you could
> place your certificate in the System keychain and then add it so that
> it can be read by your application anytime. This should work okay and
> if you do this during installation, the user should only have to
> authenticate then.
You are correct, it doesn't work. And in trying to figure this out,
I've come to realize that I've used predicates "the hard way" in some
of my code. Try this instead:
NSPredicate *pred = [NSPredicate predicateWithFormat:@"(SUBQUERY(
tags, $x, $x.name = %@ AND $x.value = %@)[EMAIL PROTECTED] !=
There would be a couple of ways that you could do it... you could
place your certificate in the System keychain and then add it so that
it can be read by your application anytime. This should work okay and
if you do this during installation, the user should only have to
authenticate then. B
On Fri, Jun 20, 2008 at 2:06 PM, Jesse Grosjean
<[EMAIL PROTECTED]> wrote:
>>> I want to construct searches such as:
>>>
>>> - find all entries that have a the tag named "priority" with the
>>> value "1".
>
>> NSPredicate *tagPredicate = [NSPredicate predicateWithFormat:@"ANY
>> tags.name = %@
> It seems to me that the linker can't find the OpenSSL libraries. I
> already added the Security Framework to my application, this did not
> make any difference.
>
> Any suggestion what I need to configure to get this to compile.
>
> Thanks in advance
> Alex
Try adding these to the project:
/
On Jun 20, 2008, at 3:26 PM, Michael Swan wrote:
The documentation says that decimalNumberWithDecimal: takes an
NSDecimalNumber as its argument and tmpValueA is an NSDecimalNumber
unless I am missing something.
The documentation says:
+ (NSDecimalNumber *)decimalNumberWithDecimal:(NSDec
I am using gSoap to integrate with a webservice. To enable SSL support
I had to add this flag to the process -DWITH_OPENSSL
g++ -DWITH_OPENSSL myclient.cpp stdsoap.cpp soapC.cpp soapClient.cpp -
lxnet -lsocket -lnsl -lssl -lcrypto
as described here :
http://www.cs.fsu.edu/~engelen/soapdoc2.
On 20.6.2008, at 13:47, Torsten Curdt wrote:
On Jun 20, 2008, at 13:09, Antonio Nunes wrote:
On 20 Jun 2008, at 11:07, Torsten Curdt wrote:
you can't go wrong by reading the "Cocoa
Drawing Guide."
Surely will read through that. Because frankly speaking I didn't
think this was Quartz re
Perhaps someone else has seen this before but it makes no sense to me.
The included code is from a NSManagedObject subclass and is part of a
method to return a readonly property that is based on the value of two
attributes (amount & frequency).
With the this code: (I removed irrelevant code
You are off to a good start by trying to mimic something as well conceived and
implemented as Cocoa's -hitTest: approach.
Now, because you want to re-invent the solution, you will need to know a lot
of details about graphics programming and associated mathematics. Determining
whether a 2D
On Jun 20, 2008, at 4:04 , Brian Christensen wrote:
for (Component *subcomponent in [hitComponent subcomponents])
Sorry, that line should be:
for (Component *subcomponent in [match subcomponents])
{
// ...
}
/brian
smime.p7s
Description: S/MIME cryptographic signature
On Jun 20, 2008, at 2:50 , Eugen Belyakov wrote:
I need to implement custom visual component system in OpenGL. And I
want to
use hitTest-like behavior ( with rotated frame rectangles and so on)
to
determine component under cursor.
Could anyone with knowledge of how -hitTest works point me in
On Jun 20, 2008, at 5:21 AM, Adam R. Maxwell wrote:
If you want to draw in memory, I think you have to drop down to
Quartz; using PDFKit would likely be easier, but it looks like you
can only specify a Quartz filter when saving to a file?.
I think there may be some confusion with regards to
On Jun 20, 2008, at 9:09 AM, Dan Uff wrote:
Hi,
I am trying to make a Cocoa application using a Quartz Composer file
as output. Everything works fine when I Simulate the app in IB, but
when I actually compile the app in Xcode, I get the following error:
__TERMINATING DUE TO UNCAUGHT EXCE
the iPhone SDK is still under NDA.
folks can't get together and discuss it outside of their own company,
nor can you legally do so on a third party mailing list or site.
Whether or not your intentions are good, this is violating the NDA.
On Jun 20, 2008, at 2:11 PM, Brad O'Hearne wrote:
Al
I want to construct searches such as:
- find all entries that have a the tag named "priority" with
the
value "1".
NSPredicate *tagPredicate = [NSPredicate predicateWithFormat:@"ANY
tags.name = %@", tag.name];
NSPredicate *valuePredicate = [NSPredicate predicateWithFormat:@"ANY
tags.va
> Yeah, I understand that... you don't need to actually buy a
> certificate for that. You can just install your certificate that you
> generate yourself and then use it internally to check the integrity of
> your data files or whatever else you'd like to do with it.
>
How would I go about doing t
Ok so the problem was that I missed the part about letting the table
view know it should allow external drag operations... :)
In the initialization code I added:
@applicationsTableView
.setDraggingSourceOperationMask_forLocal(OSX::NSDragOperationGeneric,
false)
And now it works great. Drag
I need to implement custom visual component system in OpenGL. And I want to
use hitTest-like behavior ( with rotated frame rectangles and so on) to
determine component under cursor.
Could anyone with knowledge of how -hitTest works point me in the right
direction?
2008/6/20 Kyle Sluder
<[EMAIL PR
I am in need of help building a large control system built in Cocoa
(Xcode 3.0, ObjC 2.0, Leopard, etc).
The company has agreed to hire some contract help for 3-9 months (with
possible extensions).
Job is in Simi Valley CA - northwest of Los Angeles.
Here is the posting the company is putting
All,
Please pardon the fact that this is in regards to a new user group
based in Phoenix, AZ. While most of you may not be local to Phoenix
and be able to attend our meetings, please feel free to join anyway,
to take part in iPhone development discussion. Perhaps your area does
not have a
On Fri, Jun 20, 2008 at 10:56 AM, Jesse Grosjean
<[EMAIL PROTECTED]> wrote:
> I'm having a hard time figuring out how to construct a query. The objects
> involved are:
>
> Entry
>- has many tags
>
> Tag
>- name (string)
>- value (string)
>
> I want to construct searches such
On Fri, Jun 20, 2008 at 1:29 PM, Eugen Belyakov
<[EMAIL PROTECTED]> wrote:
> Somebody knows how NSView's hitTest method works internally?
This is not the question you mean to ask. The question you want to
ask is one or more of the following:
1) I need to implement X, kind of like what -hitTest do
On Fri, Jun 20, 2008 at 11:01 AM, Robert Douglas <[EMAIL PROTECTED]> wrote:
> Cool. I'll probably end up doing something more like Cathy recommended but
> forwardInvocation looks very powerful and useful.
I'd say that's almost an understatement. It's the core of the Cocoa
implementation of the
On Fri, Jun 20, 2008 at 10:29 AM, Eugen Belyakov
<[EMAIL PROTECTED]> wrote:
> Somebody knows how NSView's hitTest method works internally?
Yes folks inside Apple do.
-Shawn
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admi
Somebody knows how NSView's hitTest method works internally?
___
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/
Dear Trygve,
Another resource is Wade Tregaskis' Keychain Framework, which I've used. I've
just taken a cursory glance at the SSCrypto Framework and they seem to overlap.
Keychain seems more extensive, but the SSCrypto API does look very clean, as
far as it goes.
Sincerely,
Joel
http://sourc
Hi,
I'm still very new to all the DND stuff, so here goes:
I want to be able to drag an item from my table view onto, for
instance a texteditor, and have it open the file that the item
represents.
(Also having it drop on Terminal and inserting the path to the file
would be nice, but that m
Yeah, I understand that... you don't need to actually buy a
certificate for that. You can just install your certificate that you
generate yourself and then use it internally to check the integrity of
your data files or whatever else you'd like to do with it.
On Jun 20, 2008, at 12:04 , Tryg
Hi,
I am trying to make a Cocoa application using a Quartz Composer file
as output. Everything works fine when I Simulate the app in IB, but
when I actually compile the app in Xcode, I get the following error:
__TERMINATING DUE TO UNCAUGHT EXCEPTION___
Any ideas?
-Dan Uff
_
> You could use the keychain for this... I think it would be the easiest
> way to support your application. Either install your certificate into
> the system keychain or provide a keychain file that your application
> accesses exclusively.
Except I don't want to buy a certificate - rather I just n
I'm having a hard time figuring out how to construct a query. The
objects involved are:
Entry
- has many tags
Tag
- name (string)
- value (string)
I want to construct searches such as:
- find all entries that have a the tag named "priority" with the
value "1".
I
You could use the keychain for this... I think it would be the easiest
way to support your application. Either install your certificate into
the system keychain or provide a keychain file that your application
accesses exclusively.
On Jun 20, 2008, at 11:45 , Trygve Inda wrote:
I am consi
I am considering using the SSCrypto Framework:
http://septicus.com/products/opensource/
I would embed a public key in my app and encrypt a data file on our site
that the software needs to download periodically. This is mostly to ensure
that file can not be modified or substituted except by us.
H
Cool. I'll probably end up doing something more like Cathy
recommended but forwardInvocation looks very powerful and useful.
Rob
On 19-Jun-08, at 7:02 PM, Graham Cox wrote:
Sometimes dispatching from First Responder to some other object is
necessary.
But there is an easy way to do it oth
Hi,
I am not sure whether this is relevant for your problem, but it might
be useful to know that the content view of a scroll view gets a
CATiledLayer instead of a normal CALayer via [setWantsLayer:YES].
The reasoning is that the content view can be potentially large and
easily exceed the
On Jun 20, 2008, at 7:47 AM, Torsten Curdt wrote:
On Jun 20, 2008, at 13:09, Antonio Nunes wrote:
On 20 Jun 2008, at 11:07, Torsten Curdt wrote:
you can't go wrong by reading the "Cocoa
Drawing Guide."
Surely will read through that. Because frankly speaking I didn't
think this was Quar
I've made a bit of progress on this, it's the right way up now, at the main
layer redraws just fine, however, sublayers disappear when I scroll (they
reappear when you resize the window, as this is presumably triggering a redraw).
I've put a test app here...
http://s3.amazonaws.com/TempStuff/La
On 20 Jun 2008, at 12:47, Torsten Curdt wrote:
The scaling is done when a PDFPage needs to be drawn, so you need
to implement it in your subclass's drawWithBox: method. Use an
affine transform set up to serve your needs and apply it to the
current graphics context within the drawWithBox: me
Hi all,
I'm building a 3-pane interface and I have a NSTreeController managing
the sidebar. My actual content displayed in the main view is bound to
the "selection" of the tree controller. When I insert a new object
into the tree controller (I've disabled selection of inserted
objects), I
On Jun 20, 2008, at 13:09, Antonio Nunes wrote:
On 20 Jun 2008, at 11:07, Torsten Curdt wrote:
you can't go wrong by reading the "Cocoa
Drawing Guide."
Surely will read through that. Because frankly speaking I didn't
think this was Quartz related.
Well, you need to know how to generally
On 20 Jun 2008, at 11:07, Torsten Curdt wrote:
you can't go wrong by reading the "Cocoa
Drawing Guide."
Surely will read through that. Because frankly speaking I didn't
think this was Quartz related.
Well, you need to know how to generally draw in Cocoa, and you need to
know how to take
Le 20 juin 08 à 06:09, Ken Thomases a écrit :
On Jun 19, 2008, at 10:39 PM, Jens Alfke wrote:
It might not be a bad idea to proactively disarm this vulnerability
on your own machine(s), as I just did:
sudo chmod -s System/Library/CoreServices/RemoteManagement/
ARDAgent.app/ARDAgent
Tha
On Fri, Jun 20, 2008 at 3:12 AM, Martin <[EMAIL PROTECTED]> wrote:
>
> Thanks for your answers but it's still not working here. Plus I don't really
> see why I should use "-id" option since what I really want to do is *change*
> one of the paths.
Straight from "man install_name_tool":
-cha
On Jun 20, 2008, at 03:35, Joel Norvell wrote:
Torsten,
John Calhoun wrote:
So, PDF Kit can I think do what you want.
I stand corrected!
But (to salvage a little face :-)
lol ...don't worry
you can't go wrong by reading the "Cocoa
Drawing Guide."
Surely will read through that. Becau
On Jun 20, 2008, at 02:40, John Calhoun wrote:
On Jun 19, 2008, at 4:35 PM, Torsten Curdt wrote:
I would like to convert a PDF of any size so it fits to A4/Letter.
I would also like to reduce it to gray scale. This all without
displaying anything.
PDFKit gives you -[PDFPage setBounds:forB
On Thu, Jun 19, 2008 at 5:56 PM, Laurent Cerveau <[EMAIL PROTECTED]> wrote:
>
> On Jun 19, 2008, at 11:02 PM, Kyle Sluder wrote:
>
>> On Thu, Jun 19, 2008 at 4:40 PM, Martin <[EMAIL PROTECTED]> wrote:
>>>
>>> And as you can see, nothing has changed and the first line has certainly
>>> not
>>> been
Hi Keary,
Awesome, this indeed works. Thanks a lot!
And about the klunkyness, it does feel a bit that way,
but it's a lot better than not being able to do it :)
Cheers,
Eloy
On 19 jun 2008, at 21:03, Keary Suska wrote:
6/19/08 3:30 AM, also sprach [EMAIL PROTECTED]:
Just wanted to check if
You don't want to change the path, you want to change the id of your
library.
-change is intended to be used to change the path of a dependent
library in an other binary.
install_name_tool -id @executable_path../../Frameworks/Foo.framework/
Versions/A/Foo Foo.framework/Foo
But as I said,
Thanks for your answers but it's still not working here. Plus I don't
really see why I should use "-id" option since what I really want to
do is *change* one of the paths.
Back to my Foo framework:
$ otool -L Foo.framework/Foo
/Users/martin/Library/Frameworks/Foo.framework/Versions/A/Foo
(
86 matches
Mail list logo