I'm not sure if this is the right place to ask (is there someplace
more relevant?), but I'm having trouble processing XQuery using the
NSXML classes.
Whereas I can get the correct results in something like Saxon, I'm
having trouble doing so in NSXML: for example, it seems that NSXML
doesn
On 13/10/2009, at 4:29 PM, Matthew Lindfield Seager wrote:
> Inverse of what?
>
> So Item A has link 1 as it's normal link and link 2 as it's alternate
> link but then what if link 2 is also the normal link for item B.
This won't ever actually happen, the link objects aren't shared between item
Inverse of what?
So Item A has link 1 as it's normal link and link 2 as it's alternate
link but then what if link 2 is also the normal link for item B.
My guess is you'll need 2 inverse relationships!
Matt
On Tuesday, October 13, 2009, Rob Keniger wrote:
> I'm just getting started with Core Da
Well, that I think depends on your definition of "crappy software". :)
The practical issue for me is that that Adobe Lightroom (at least on
the PC) won't read an RGBA TIFF file, and if one of Adobe's premier
packages won't read the file, then the current Apple implementation of
the TIFF wri
Create a Link Entity by adding another property linkType which decides
the normal or alternate link.
In Item entity make to-many- relationShip for relationship link
Thanks
Kiran
On 13-Oct-09, at 11:34 AM, Rob Keniger wrote:
I'm just getting started with Core Data so go easy on me.
I am mo
I'm just getting started with Core Data so go easy on me.
I am moving my existing app across to Core Data and I'm having trouble with a
few concepts.
At present (pre-Core Data) my app has a model object ("Item") which is used as
the node object in an NSTreeController.
This model object has mul
The project is a game engine which has 2 graphs. The first is a tree
of events that represent the story. Each "event" in the story is an
immutable object, and there is a special event which represents a
series of events to run in order and one which represents branches
that the player has to
Hi list,
I stupidly lost the source code to a program I wrote a long time ago,
and now have enough spare time to re-write it.
The program stored data with NSCoder.
The re-written program needs to be able to read the same data.
As I lost the source code, I would like to know if there is a way
Is it possible to have the UIViewController receive shake events in
the 3.x API? I saw that UIViewController subclasses UIResponder so I
thought I'd ask. I wrote some code but wasn't able to make it work.
Thought there might be some quirk. Currently I'm implementing a
solution by subclassin
On Oct 11, 2009, at 9:46 PM, Ben Haller wrote:
Most of the bugs I had to fix were related to either using "long"
instead of "int", or needing a -finalize method.
You should actually probably be using NSInteger instead of either of
those these days.
There's actually a ConvertCocoa64 script
Huge thanks to everyone. Your time is valuable and I appreciate it that
you are spending it on helping me.
A lot of high quality, very useful answers.
I have decided to try and work towards the following pattern (in Mr.
Parker's nice words):
"One thread per instance. Much of Core Data works
Yes, well it is fairly complex... but it looks like core data is
not a good fit since a basic requirement is that I need it to store
nested arrays of immutable objects and keep the order (I also need
to allow those objects to be inserted at multiple points in the
array). The immutability a
On Oct 12, 2009, at 1:31 PM, Jon Hull wrote:
3) What is the best way of connecting objects from different
stores? I am considering giving them UUIDs and then storing that as
a reference. Then setting a transient property based on that in -
awakeFromFetch. Alternatively, I could store it a
On Oct 12, 2009, at 1:33 PM, Gustavo Pizano wrote:
Keary Hello:
This doesn't appear sensible, and you may have a number of
problems. First, make sure that InvoiceEditionViewController is
being instantiated
this is what Im doing: in the awakeFromNib
if(_userListController == nil){
_use
I have this "nonstandard" image format which I want to convert into a
more "standard" image format (say, PNG). I'm having difficulty on how
to use NSImageRep to do so. This "nonstandard" format can be
converted into a bitmap, so I thought that using NSBitmapImageRep can
do just that. How
On Oct 12, 2009, at 3:36 PM, Iceberg-Dev wrote:
Wouldn't there be an API I didn't see in Foundation that lets you
obtain the type without having to convert, at least, a NSURL to a
FSRef?
In 10.5 there were a bunch of mismatches between APIs like this, that
required clients to convert bet
On Oct 12, 2009, at 2:47 PM, Dave Keck wrote:
I recommend adopting this rule too, and only making classes thread
safe if it makes sense.
+1
While making every class you ever write
thread-safe might be a good intellectual exercise, it's hard and time
consuming, and I doubt there's many of us
On Mon, Oct 12, 2009 at 6:36 PM, Iceberg-Dev wrote:
> From what I've found in the documentation, the UTI type of a file can be
> retrieved using the
> LaunchServices APIs. This requires to provide a FSRef.
>
> Wouldn't there be an API I didn't see in Foundation that lets you obtain the
> type w
That worked brilliantly!! Thank you very much.
On 2009-10-12, at 3:59 PM, Dave Keck wrote:
- (void)mouseDidEnterView: (NSView *)newMouseOverView
{
if (mouseOverView)
{
[[mouseOverView animator] setFrame: oldMouseOverViewFrame];
}
mouseOverView = newMouseOverView;
From what I've found in the documentation, the UTI type of a file
can be retrieved using the LaunchServices APIs. This requires to
provide a FSRef.
Wouldn't there be an API I didn't see in Foundation that lets you
obtain the type without having to convert, at least, a NSURL to a FSRef?
I'
André Berg wrote:
I am designing my first real class and I am wondering about thread
safety.
Thoughts on reading the above:
What do you mean by "real class"? Are the other classes you've
designed merely sham classes? Toy classes? Mock classes?
What other classes have you designed? A
> Thank you, that helps a lot. How would I get a reference to the previous
> NSView object?
On your mouseEntered, send a message to some controlling object - let's call
it MyViewController:
- (void)mouseEntered:(NSEvent *)theEvent
{
[myViewController mouseDidEnterView: self];
}
- (void)
> In that case is it my responsibility to guard all access to my class' thread
> unsafe ivars (like mutable objects for example) or is it the responsibility
> of the user of my class to guard all access to my class' instances in his
> code?
When dealing with Cocoa, the rule is that all classes mus
Thank you, that helps a lot. How would I get a reference to the
previous NSView object?
On 2009-10-12, at 3:22 PM, Dave Keck wrote:
I'm not sure what I'm doing wrong here. Also, how do I make it so
that the
frame size increases from the center of the view outwards. Like
right now it
looks
On Oct 12, 2009, at 1:47 PM, André Berg wrote:
I am designing my first real class and I am wondering about thread
safety. I have read the Cocoa Fundamentals and also the Threading
Programming Guide but there was one question forming in my head
which I couldn't quite find an answer for. I gue
On Oct 12, 2009, at 1:47 PM, André Berg wrote:
[...] My class internally doesn't use any threads at all (well apart
from an NSTask ivar and readInBackgroundAndNotify). The only
scenario I can think of that would be dangerous is if in the calling
code (the code from the user of my class) the
Maybe the fact that your view is growing while you move your mouse
(and under your mouse) is causing AppKit to become confused about
whether or not the mouse is inside or outside the view.
What about managing your animations from a mouse-move message on the
NSCollectionView?
Jesper
On Oct 1
On Oct 12, 2009, at 2:47 PM, André Berg wrote:
In that case is it my responsibility to guard all access to my
class' thread unsafe ivars (like mutable objects for example) or is
it the responsibility of the user of my class to guard all access to
my class' instances in his code?
It depen
Hi Everyone:
On the Mac, there is this function to create Vcards:
initWithVCardRepresentation:. However, I have not heard of a method that
replicates this behavior on the iPhone. As the built-in Address Book app
can do it, I assume there must be a way that isn't too complex. Is there
some frame
On Oct 12, 2009, at 2:27 PM, Ben Trumbull wrote:
It sounds like you're trying to create a tight 1:1 binding between
your model objects and controller objects to avoid actually writing
a controller layer.
That may be the case. I am currently using an off the shelf
NSObjectController and NS
On 13/10/2009, at 4:39 AM, Sandy McGuffog wrote:
Actually, that occurred under 10.5 as well - what happens is that some
operations, it would seem those involving Core Image, cause the
internal representation to go to RGBA. Which is fine, but there
doesn't seem to be a way to write a plain R
> I'm not sure what I'm doing wrong here. Also, how do I make it so that the
> frame size increases from the center of the view outwards. Like right now it
> looks like its magnifying from the left to the right. I'm sure theres
> something I need to do with the origin, but I'm not sure.
I'd imagin
Hi All,
I'm looking for suggestions for debugging an issue I'm seeing with the
Control-Command-D "Lookup in Dictionary" shortcut in NSTextView on
Snow Leopard (10.6.1) .
The Problem:
When I execute the shortcut on Snow Leopard in a subclass of
NSTextView that is part of a paged layout configurat
Ok, let me ask some more specific questions and see if that gets a
response... Feel free to respond if you only know the answer to 1 or
2 of these.
1) Can I count on a to-many relationship keeping the order of the
managedObjects it points to? The order is very important in this
case, and I need
On Oct 12, 2009, at 4:32 PM, Jon Hull wrote:
I have spent the last 48 hours (re)reading core data docs. My head
is swimming in docs.
Understandable. It's a complicated technology (especially when you
consider its interaction with Bindings).
The short answer is yes, I understand to giv
Hi,
I am designing my first real class and I am wondering about thread
safety. I have read the Cocoa Fundamentals and also the Threading
Programming Guide but there was one question forming in my head which I
couldn't quite find an answer for. I guess it is something that class
designers deal
On Oct 12, 2009, at 4:27 PM, Ben Trumbull wrote:
but in this case it must draw itself.
No, it doesn't must do anything. Views draw themselves, model
objects are state, and controllers are intermediaries.
...
What problem are you trying to solve by knowingly violating the MVC
design patte
Hello,
I would like to add number of audio tracks menu item under "custom
button" on QuickTime media control.
What I mean by saying "custom button" is the triangle button which is
at the right most side if you open a QuickTime movie using Web browser.
I'm currently using QTKit and found so
On Oct 11, 2009, at 7:46 PM, Ben Haller wrote:
Besides that, I just needed to change a few retains and releases
around, because I was mixing CF calls and Cocoa calls in an
inconsistent way in a few places. And that was it; as far as I can
tell, it now runs nicely on all the target platform
Turns out my problem was that I was linking to the original file. I created
a simlink to the .dylib file provided by the manufacturer, removed the
reference to the .a file I was including manually and everything seems to
work.
Still needs a lot of testing, but its getting somewhere.
2009/10/12 jon
On Oct 12, 2009, at 1:17 PM, Rob Barris wrote:
Within a single thread of execution, if you are about to do some GL
drawing and you are unsure of the current context, you should set
it, and it will stay set.
If I knew what it was I could set it. My model object knows nothing of
the glConte
Adding an inverse does solve the problem (maybe I missed mentioning
it). The reasons why I thought it was a CD bug are the following:
- I don't think it's obvious from the docs that the SQLite store can't
cope with relationships that have no inverses (I was told by Danny
Greg that having an i
I have an NSCollectionView full of NSViews containing NSImageViews.
Basically looks like a NSMatrix of NSImageCells. I've subclassed the
NSCollectionView's prototype NSView and added methods to add a
"magnification" sort of effect when a user hovers on an item:
- (void)mouseEntered:(NSEvent
Thanks for the test project. However, reviewing and fixing all
compiler warnings is likely to make development a significantly less
frustrating experience. We've taken to fixing (nearly) all compiler
warnings, even ones we know are harmless, so we can easily find the
new ones that likely
On Oct 12, 2009, at 12:46 PM, I. Savant wrote:
On Oct 12, 2009, at 3:31 PM, Jon Hull wrote:
1) Can I count on a to-many relationship keeping the order of the
managedObjects it points to? The order is very important in this
case, and I need a way to ensure that the order does not change
wh
I ended up using an NSCollectionView, which was much easier to
implement.
Thanks for the advice!
On 2009-10-11, at 4:58 PM, Graham Cox wrote:
On 12/10/2009, at 7:20 AM, PCWiz wrote:
I need to create an NSMatrix with NSImageCells bound to an array
controller. So the content of the NSMatri
Consider an application using Core Data and OpenGL.
Normally a model object (MVC) has no knowledge of views or controllers
for good reasons.
but in this case it must draw itself.
No, it doesn't must do anything. Views draw themselves, model objects
are state, and controllers are intermed
Jon,
Your question is a bit amorphous. Can Core Data do something like
this ? Sure. May it require adjusting things to fit into its
architecture ? Possibly.
I have a game project for the iPhone which has a rather complicated
object graph
Well, it would probably only take a few minute
On Oct 12, 2009, at 3:31 PM, Jon Hull wrote:
1) Can I count on a to-many relationship keeping the order of the
managedObjects it points to? The order is very important in this
case, and I need a way to ensure that the order does not change when
the object is saved and reloaded.
No. Thi
Keary Hello:
This doesn't appear sensible, and you may have a number of problems.
First, make sure that InvoiceEditionViewController is being
instantiated
this is what Im doing: in the awakeFromNib
if(_userListController == nil){
_userListController = [[UserListViewController alloc]
i
Ok, let me ask some more specific questions and see if that gets a
response... Feel free to respond if you only know the answer to 1 or
2 of these.
1) Can I count on a to-many relationship keeping the order of the
managedObjects it points to? The order is very important in this
case, an
On Oct 12, 2009, at 12:04 PM, Kyle Sluder wrote:
This is typically where the controller layer would come in. A
controller-layer object would know of the GL context and of the
insertion/removal of objects in the MOC, and create resources
accordingly.
I think I can perhaps see light at the
I have a related question. The various image file formats have their
own options and settings (compression levels, color space,
interlacing, etc.); is there a generic way to access these from within
my application?
For those who still remember BeOS (where the grass was green and the
girl
On Oct 12, 2009, at 11:52 AM, Gustavo Pizano wrote:
Ok this is what I have:
1. InvoiceGenViewController.m -> Controller for the InvoiceGenView.xib
2. UserListViewController.m -> Controller for the UserListView.xib
3. InvoiceEditionViewController.m -> Controller for the
InvoiceEditionView.xib
On 12 Oct 2009, at 13:09, Rui Pacheco wrote:
Hi,
I'm using a library on my project that requires OpenSSL. I've linked
to
libssl.dilyb and libcrypto.dilyb but when I try to compile my
project, it
comes up with the error " "_SSL_CTX_set_client_cert_cb", referenced
from:
".
Some Googling
Rob, your comment got me thinking and I did some checking. I am
drawing to a CAOpenGLLayer which has two OpenGL contexts, one public
and one private. The frameworks switch at times to the private one
(outside of the normal drawing cycle). This private one is where some
of my OpenGL commands
On Mon, Oct 12, 2009 at 7:47 AM, Richard Somers
wrote:
> Any suggestions or comments?
This is typically where the controller layer would come in. A
controller-layer object would know of the GL context and of the
insertion/removal of objects in the MOC, and create resources
accordingly.
--Kyle S
Well, I have found it to be even more weird. On Leopard, the Core
Animation animation sometimes can run simultaneously with the blocking
NSAnimation. In fact, I have done something to my app, don't know
what, and now CA runs in parallel with the blocking NSAnimation
causing the latter to jitter. I
Ok this is what I have:
1. InvoiceGenViewController.m -> Controller for the InvoiceGenView.xib
2. UserListViewController.m -> Controller for the UserListView.xib
3. InvoiceEditionViewController.m -> Controller for the
InvoiceEditionView.xib
InvoiceGenView.xib, has a slipt view and InvoiceGenV
On Oct 12, 2009, at 8:50 AM, Nick Rogers wrote:
2009-10-12 20:28:53.651 My Program[33987:6263] *** -[CFArray count]:
message sent to deallocated instance 0x1149a9310
[Switching to process 33987]
[Switching to process 33987]
sharedlibrary apply-load-rules all
2009-10-12 20:29:03.917 My Program
> Is it possible to some how to get it automatically stop at [CFArray count]
> OR is it possible to set a breakpoint at all [CFArray count] in Xcode or in
Break on objc_exception_throw.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do n
Hi,
I order to track a bug which made an outline view hang the GUI, I set
NSZombieEnabled with value YES in the app's environment variable.
Now even before I could get to the point of GUI hangs the following is
reported in console:
2009-10-12 20:28:53.651 My Program[33987:6263] *** -[CFArray
Actually, that occurred under 10.5 as well - what happens is that some
operations, it would seem those involving Core Image, cause the
internal representation to go to RGBA. Which is fine, but there
doesn't seem to be a way to write a plain RGB format TIFF. I had to
incorporate a third-part
On Oct 12, 2009, at 4:26 AM, Karolis Ramanauskas wrote:
As you can see each box has one or more little "inputs" and
"outputs" in
fact these inputs and outputs are instances of one class (KROMPort).
When I
drag a connection from output to an input, I set each "port's"
connection
property to
On Oct 10, 2009, at 11:41 AM, Jos Timanta Tarigan wrote:
i got a very basic question on iphone development. so i add an
uiview via IB and try to update it by making my own interface called
updateInterface(). in the update interface i put this code:
Why would you do that instead of using the
On Mon, Oct 12, 2009 at 4:36 AM, Peter C wrote:
> I just stumble into a feature (or a bug ?), NSImage TIFFRepresentation
> produce RGB TIFF with a layer (when open under Photoshop). Previously it
> produce plain RGB TIFF under OS 10.5 and below. This cause some part of my
> programs interpret wro
Hi,
there a different roots to success
a) roll your own Tabs instead of Segmented cell in combination with a
tabless NSTabView
b) Add/remove tab items on demand
Both are fairly easy to achieve with some pitfalls like view retains
and such. I am using the b) route for something similar
Hi all,
I have a hierarchical list of objects, like the typical iTunes or
XCode left pane. When the user selects a node in this hierarchy, I
display detail of that node in the pane on the right. This right pane
is divided into tab view items. Only some of the tab view items are
relevant t
Consider an application using Core Data and OpenGL.
Normally a model object (MVC) has no knowledge of views or controllers
but in this case it must draw itself. When the draw method is called
by the view or controller the appropriate OpenGL context is current.
So far so good. The problem ho
On 12/10/2009, at 11:57 PM, Paul Bruneau wrote:
Yes, I have recently learned how to do this for my under development
app.
The tricky part in your case (and mine) is because your "ivar" is
not an ivar but a derived value returned by a method, you need to
tell the KVO system that. Here is m
Am 12.10.2009 um 15:27 schrieb Alex Reynolds:
How do I create the new Book entity in the secondary MOC, so that I
can still associate it with a pre-existing Owner in the primary MOC?
You can’t.
Drag a local instance of the owner into you second MOC and connect to
that copy.
atze
Thanks to everyone! Reading all this I realized that there is a little more
to GC than I know... or should I say a lot more. at this point I'm unable to
choose exactly what may be the best solution. I will have to read
documentation and interpret that information through the prism of my
application
I am using the CoreDataBooks sample application as a basis for pulling
data into a secondary managed object context in the background, and
then merging that data into the primary managed object context.
The data I am pulling in is a Book entity with a to-one relationship
with an Owner entit
No. Under GC you don't have this problem at all. You don't need
weak references or anything else funky, it just works. MyClass1
pointing to MyClass2 and back with ordinary object references/
assign properties does create a cycle yes, however GC can manage
that perfectly well. Once there ar
Yes, I have recently learned how to do this for my under development
app.
Here is the IB part, pretty straightforward (File's Owner (a
controller class) has a door object with a derived "fake" ivar called
isMonumental:
<>
The tricky part in your case (and mine) is because your "ivar"
On Oct 9, 2009, at 3:04 PM, Richard Somers wrote:
Also for some reason the first context under some circumstances is
not fully functional for me but the second one is.
My mistake. The first context is fully functional.
Richard
___
Cocoa-dev maili
On 12.10.2009, at 13:42, Roland King wrote:
On 12-Oct-2009, at 7:26 PM, Karolis Ramanauskas wrote:
Thanks, Kai, Greg, Jens,
It's generally a bad idea to have two objects each retain the
other. It
produces a reference loop, which means neither object can be
deallocated
without manually
Hi,
I'm using a library on my project that requires OpenSSL. I've linked to
libssl.dilyb and libcrypto.dilyb but when I try to compile my project, it
comes up with the error " "_SSL_CTX_set_client_cert_cb", referenced from:
".
Some Googling shows that this means there's a discrepancy between the
On 12-Oct-2009, at 7:26 PM, Karolis Ramanauskas wrote:
Thanks, Kai, Greg, Jens,
It's generally a bad idea to have two objects each retain the
other. It
produces a reference loop, which means neither object can be
deallocated
without manually releasing each side of the relationship.
As
I just stumble into a feature (or a bug ?), NSImage TIFFRepresentation
produce RGB TIFF with a layer (when open under Photoshop). Previously
it produce plain RGB TIFF under OS 10.5 and below. This cause some
part of my programs interpret wrong RGB data, expecting 3 bytes
instead of 4 bytes
Thanks, Kai, Greg, Jens,
> It's generally a bad idea to have two objects each retain the other. It
> produces a reference loop, which means neither object can be deallocated
> without manually releasing each side of the relationship.
As was stated in my original email these are all weak referenc
I have a game project for the iPhone which has a rather complicated
object graph
There is a large graph of tiny immutable objects which represent the
story (including different branches of the storyline). This graph is
large enough that I only want to keep the nodes that are actually
bei
On 11 Oct 2009, at 21:45, John Love wrote:
I definitely do agree that polling is sporadic or unpredictable --
and taking your clue about +distantFuture to heart, I changed it to
+date to indicate now, or immediately -- and it now works even with -
shouldExit sending other message IDs. I jus
83 matches
Mail list logo