Re: Weird NSTextField behavior on MBA.

2011-11-23 Thread Gustavo Pizano
Ok so its fixed. Interestingly setting the textfiield.stringvalue wasn't working. But when I set the textfield.floatValue it did work normally on all machines. gustavo On Nov 22, 2011, at 2:37 PM, Richard Somers wrote: > On Nov 22, 2011, at 1:59 AM, Gustavo Pizano wrote: > >

Re: Weird NSTextField behavior on MBA.

2011-11-22 Thread Gustavo Pizano
n Nov 21, 2011, at 3:08 PM, Gustavo Pizano wrote: > >> So im wondering what its going on because I have tried the behavior on 2 >> iMacs, 2 MPB and 2 MBA, on the latest one is the only one that doesn't >> behave as expected. What can it be? > > Perhaps it is a g

Weird NSTextField behavior on MBA.

2011-11-21 Thread Gustavo Pizano
Hello all. This is really bothering me. I have a slider and a textfield. When I move the slider im setting the value of the slider on the text field. So this works fine on my iMac and my wife's MBP, but on a friend MBA the value on the textfield does not display at all. Somehow it display whe

Re: So… no NSOtulineView Drag and Drop with NSTreeController?

2011-11-09 Thread Gustavo Pizano
Hello, I just found this example : abstract Tree which uses NSTreeController and NSOtulineView, so Im checking on it seems this is what I need :D I will let you know.. Thanks for the help. Gustavo On Nov 9, 2011, at 11:27 PM, Mike Abdullah wrote: > > On 9 Nov 2011, at 22:17, G

So… no NSOtulineView Drag and Drop with NSTreeController?

2011-11-09 Thread Gustavo Pizano
Hello all. I have been looking for some guidance or light on this matter, The closest I was able to find was this page: http://theocacao.com/document.page/130 but then checking on Apple mail list I read some comments that the above solution makes uses of undocumented methods. Im using a NST

NSOutlineView with NSTableCellView not working, what am I missing?

2011-11-01 Thread Gustavo Pizano
Hello. Im trying to set a NSOutlineView not Cell based but View based. Now, I read the documentation and pretty much I had all set up except that the binding doest go to the table column, but to the table view contents. - So I have a class called PGTreeNode with a name and an image properties

Re: Custom NSCell and Bindings

2011-06-28 Thread Gustavo Pizano
Hello Carter. Right now I can't remember the name of the example. Its a little tricky but its do-able. your MO subclass must do something like: -(NSDictionary *)userDictionary{ return [self dictionaryWithValuesForKeys:[NSArray arrayWithObjects:@"firstName",@"lastName",@

Re: Masking UIImages (yes, again)

2011-06-26 Thread Gustavo Pizano
I was on the same boat a few weeks ago and I wanted to ask something similar but I completely forgot. I was trying to mask an image with a mask image created from a bezier path, the idea was that I created my bezier path then I fill EO the path so the part that was supposed to mask I left it o

Re: Animating handwriting

2011-06-26 Thread Gustavo Pizano
Ok I will check in Photoshop and create the animation there. Thanks all for the reply G On Jun 25, 2011, at 4:47 AM, Scott Anguish wrote: > I don’t think it’s the amount of page space, rather the quantity of the > alphabet. > > If this is just for an effect for an about screen or soemthing, I’d

Re: Animating handwriting

2011-06-24 Thread Gustavo Pizano
Hello all. So it will be good idea then to create a Mac app that will record the imput from the mouse/pen in a character basis, then record each character and then pass a string to a method, divided the string in characters and draw each character from the "map" I already did before... maybe

Re: Animating handwriting

2011-06-23 Thread Gustavo Pizano
ly writing the > title on a piece of paper. > > > On Jun 23, 2011, at 9:45 AM, Gustavo Pizano wrote: > >> Hello. >> >> Yes kinda. >> >> G. >> On Jun 23, 2011, at 6:34 PM, Conrad Shultz wrote: >> >>> -BEGIN PGP SIGNED MESS

Re: Animating handwriting

2011-06-23 Thread Gustavo Pizano
Hello. Yes kinda. G. On Jun 23, 2011, at 6:34 PM, Conrad Shultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 6/23/11 6:50 AM, Gustavo Adolfo Pizano wrote: >> Helo Ken. >> >> Thanks for answer, >> I meant, I have some title string already, and I wish to be able to >> animate

Re: The simplest way to fade out a view

2011-05-20 Thread Gustavo Pizano
u r welcome. On May 20, 2011, at 11:50 PM, Nick wrote: > Great that did the trick :-) > Thanks, Gustavo > > 2011/5/21 Gustavo Pizano > >> Hello nick. >> >> Try putting the fromValue also, I had some problems also with the blink, >> but right now I can

Re: The simplest way to fade out a view

2011-05-20 Thread Gustavo Pizano
Nick try to put the fillMode property of the animation also something like alphaAnimation.fillMode = kCAFillModeForwards; and removeOnCompletion to NO; no matter what key you put when adding the animation to the layer, the imprtant is the key you use when creating the animation, so "opacity"

Re: The simplest way to fade out a view

2011-05-20 Thread Gustavo Pizano
Hello nick. Try putting the fromValue also, I had some problems also with the blink, but right now I can't think of what I did to solve it, too much wine!!! :P maybe put the remove on competition to NO. :S On May 20, 2011, at 10:21 PM, Nick wrote: > Chase, > thank you for your responses. >

Re: The simplest way to fade out a view

2011-05-20 Thread Gustavo Pizano
CAAnimation isn't that complicated. CABasicAnimation * alphaAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"]; alphaAnimation.delgate = self; alphaAnimation.removedOnCompletition = YES; alphaAnimation.autoreverses = NO; alphaAnimation.timingFunction = [CAMediaTimingFunction functi

Re: The simplest way to fade out a view

2011-05-19 Thread Gustavo Pizano
So you want to move an object then fade it out right? AFAIK NSViewAnimation its for simply animations, triggering other animations after a previous one has completed may not work with this. What about using CABasicAnimation instead and call the delegate methods when it stops to trigger the fa

Re: The simplest way to fade out a view

2011-05-19 Thread Gustavo Pizano
funny, I can't say it has happened to me as I always use CAAnimation . On May 19, 2011, at 9:27 PM, Quincey Morris wrote: > On May 19, 2011, at 11:22, Gustavo Pizano wrote: > >> Why will it be a bug?, a fade-in animation goes form 0 to 1 alpha, so at the >> start point

Re: The simplest way to fade out a view

2011-05-19 Thread Gustavo Pizano
Why will it be a bug?, a fade-in animation goes form 0 to 1 alpha, so at the start point the alpha value must 0 no? On May 19, 2011, at 7:31 PM, Quincey Morris wrote: > On May 19, 2011, at 05:26, Nick wrote: > >> Could you please advice me what would be the best way to "fade out" >> and "fade

Re: The simplest way to fade out a view

2011-05-19 Thread Gustavo Pizano
sorry putting again on the list, you could always ask the animator proxy to do the sutff the only thing you neeed to set is to tell the NSView to accept layers to YES then [[[myview] animator] setAlpha:0.0]; that will fade it . On May 19, 2011, at 7:04 PM, Mikkel Islay wrote: > >>> Yes,

Memory growing and growing when using UIImageView's image

2011-05-17 Thread Gustavo Pizano
Hello. UI have 2 UUIImageView which Im sliding in/out to display some images, but each time the new image slides in the memory keeps growing and growing and growing even I set to nil the image of the outgoing UIImageview. This is what Im doing. Please any help will be very appreciate it. -(vo

Re: Silly, can I use @max to get the object with the latest date?

2011-05-15 Thread Gustavo Pizano
uest setSortDescriptors:[NSArray arrayWithObject:[NSSortDescriptor > sortDescriptorWithKey:@"date" ascending:NO]]]; // descending = arranged from > largest (latest) > [request setFetchLimit:1]; > > -ev > > On May 15, 2011, at 18:02, Gustavo Pizano wrote: > >> He

Silly, can I use @max to get the object with the latest date?

2011-05-15 Thread Gustavo Pizano
Hello all. I have a Entity Athat has a to-many relationship. to B Now I need to get the latest B of A. I was reading NSFetchRequest, and NSPredicate, for NSPredictate I could use something like predicate = [NSPredicate predicateWithFormat:@"birthday > %@", referenceDate]; filteredArra

Re: NSClassFormString returning nil.

2011-05-04 Thread Gustavo Pizano
Ok I solved it,, I didn't need to link again cocos2d into the final app... then all went ok the NSClassFromString now works :D:D:D On May 4, 2011, at 7:41 PM, Gustavo Pizano wrote: > Hello again, im really wondering if this is the right list, but anyway if you > don't mind

Re: NSClassFormString returning nil.

2011-05-04 Thread Gustavo Pizano
rcun/Build/Products/Debug-iphonesimulator/libIADTravelEngine.a(CCAction.o) for architecture i386 collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1 :S :S... thx G. On May 4, 2011, at 7:38 PM, Gust

Re: NSClassFormString returning nil.

2011-05-04 Thread Gustavo Pizano
I found why the file not found.. I had the header path wrong.. now its ok.. im gonna try to see if the NSClassFromString works or what... On May 4, 2011, at 7:31 PM, Gustavo Pizano wrote: > Quincey Hello and thx for the reply > > I need to use the a library because its a iOS proj

Re: NSClassFormString returning nil.

2011-05-04 Thread Gustavo Pizano
x Gustavo On May 4, 2011, at 7:11 PM, Quincey Morris wrote: > On May 4, 2011, at 09:12, Gustavo Pizano wrote: > >> linker problems > > Vagueness like this makes it hard to help you. Sometimes the actual error > messages are important in deciding where to look for

NSClassFormString returning nil.

2011-05-04 Thread Gustavo Pizano
Hello all. Im sorry if this isn't the right place to post this, I wasn't sure if xcode list obj-c list or this one, so I decided this one. I have created a Static Library which makes use of another library (cocos2d to be more specific), then I created a project that will use that library i cre

Re: Binding a to-many relationship into a table subview of NSCollectionItemView

2011-04-28 Thread Gustavo Pizano
de is that I will have to implement the sort of the table because I lost that feature as Im not using an NSArrayController to populate the table but a datasource. G. On Apr 28, 2011, at 3:35 PM, Gustavo Pizano wrote: > Hello all. > > I have been researching and I only found somebo

Binding a to-many relationship into a table subview of NSCollectionItemView

2011-04-28 Thread Gustavo Pizano
Hello all. I have been researching and I only found somebody who had the same problem, but the question went unsolved, so Im sorry if I ask again, I hope somebody can enlighten me. I have a NSCollectionView and its respective NSCollectionViewItem, also I have a NSTableView wich displays the

Re: iOS Best Practice Question

2011-04-26 Thread Gustavo Pizano
Many things into consideration. 1. will you give a UI feedback with a "slide-in" animation? 2. will come form bottom? (normally it does if occupies the whole with). 3. will the button that trigger the picker be used to dismissed it? But coming to your question, I will opt for 3 but adding the uipi

Performing a Fetch Request on a specific MO.

2011-02-28 Thread Gustavo Pizano
Hello. I come from EOF bg, and i remember it was quite simple to let's say, ask a specific object to give me the max number of a entity which was related to. To make it clearer. Enity A has a toMany relation with Entity B. entity B has a property called versionNumber. So I want to get the

NSProgressIndicator tintcolor

2011-02-25 Thread Gustavo Pizano
Hello all. Im just wondering why changing the tint color using the setControlTint of the progress bar to NSGraphiteControlTint doesn't has any effect, I keep seeing that aqua colors... I have tried finding answers online but it seems everybody has that problem.. or everybody is doing somethi

Re: Tiling, applying it in my app.

2011-01-22 Thread Gustavo Pizano
[pool drain]; } Thanx for the reply once again.. I hope I can clarify my doubts.. Gustavo On Jan 22, 2011, at 7:47 PM, Matt Neuburg wrote: > > On Jan 22, 2011, at 10:30 AM, Gustavo Pizano wrote: > >> I see a Bigger image, as if it was scaled, but because in

Re: Tiling, applying it in my app.

2011-01-22 Thread Gustavo Pizano
ale. It was kinda harsh solution, but fortunately the images changes very fast because they are not big 16k at the most. On Jan 22, 2011, at 4:52 PM, Matt Neuburg wrote: > On Fri, 21 Jan 2011 23:04:21 +0100, Gustavo Pizano > said: >> So here are my only thought... >>

Tiling, applying it in my app.

2011-01-21 Thread Gustavo Pizano
Hello all. I have seen the WWDC video a,d im checking the source code about Tiling & zooming in a UIScrollView. Now, my app differs a little in it's content as from the view but as in the video was stated the technique is portable for proper zoom in a scrollview. I have a UIScrollview, the scr

Re: best way of making a constant animation

2011-01-20 Thread Gustavo Pizano
ion:rotationAnimation > forKey:@"RotatingFlash"]; > > When you want the animation to stop do this: > > [flashImageView.layer removeAnimationForKey:@"RotatingFlash"]; > > On 2011-01-20, at 3:57 PM, Gustavo Pizano wrote: > >> Hello all, sor

best way of making a constant animation

2011-01-20 Thread Gustavo Pizano
Hello all, sorry to bother with such a question... here it goes. I need to have a rotate animation of a UIImageView, very very soft, I know using UIView class methods I can make the animation and setting the affine transform + plus the duration to something really big like 1e100f, the thing is

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Gustavo Pizano
On Jan 16, 2011, at 8:47 PM, Luke Hiesterman wrote: > viewDidLoad is called the first time the view property of the vc is accessed > - that's when loading happens. There is no guarantee that the view is in a > window at that time, and presenting a modal vc on a vc whose view is not in a > wind

Re: Improving drawing of UIView with many many Subviews

2010-12-21 Thread Gustavo Pizano
David hello. I just wanted to update you. So I did the modification to subclass UIImageView instead, and just added the userInteractionsEnable to YES, modify my NSCoding protocols methods + I add a category for th eUIImage (NSCoding) methods, and all seemd to work perfectly, saving time its l

Re: Improving drawing of UIView with many many Subviews

2010-12-21 Thread Gustavo Pizano
Aha,,, I thought using UIView instead would be better, but I guess I was wrong.. I will then make the modifications then and see.. Thanks for the help I will keep you informed.. G. On Dec 21, 2010, at 5:57 PM, David Duncan wrote: > Why not just use a UIImageView instead of implementing a cu

Re: Working with CGImage and Retina Display

2010-12-15 Thread Gustavo Pizano
use +[UIImage imageNamed:], > which will automatically load the correct version of your map image. When you > draw that image, it does so with the scale in mind. > > > On Dec 13, 2010, at 3:09 PM, Gustavo Pizano wrote: > >> Hello all. >> >> Im creating som

Re: Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread Gustavo Pizano
Thanks anyway.. ;) On Dec 14, 2010, at 9:34 PM, David Duncan wrote: > On Dec 14, 2010, at 12:31 PM, Gustavo Pizano wrote: > >> I have a view within a NavigationViewController that display a list of >> picked songs, so at first run this list is empty, when the user clicks th

Re: Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread Gustavo Pizano
Yep.. I didn't read the header part before :S. On Dec 14, 2010, at 9:34 PM, David Duncan wrote: > On Dec 14, 2010, at 12:31 PM, Gustavo Pizano wrote: > >> I have a view within a NavigationViewController that display a list of >> picked songs, so at first run this list

Re: Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread Gustavo Pizano
Ok I found my answer in the docs I doesn't support landscape mode.. G. On Dec 14, 2010, at 9:31 PM, Gustavo Pizano wrote: > Hello all. > > Im having some troubles here, > > I have a view within a NavigationViewController that display a list of > picked songs, so at

Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread Gustavo Pizano
Hello all. Im having some troubles here, I have a view within a NavigationViewController that display a list of picked songs, so at first run this list is empty, when the user clicks the add songs, I push a MPMediaPickerController into the navigationViewController, but the size of the MPMed

Working with CGImage and Retina Display

2010-12-13 Thread Gustavo Pizano
Hello all. Im creating some views which draws a CGImage that is obtained from a Atlas Map, (Big map containing all the images). for iPHone 4 I have this map 2 times bigger than the normal one, so if I have a 2.0 scale on screen I load that one. What Im getting is that on iPhone 4 Im seeing all

Encoding UIViews take long time..

2010-12-11 Thread Gustavo Pizano
Hello, this comes from a previous post i did, but IW as asking something else. So im working with UIViews which draws an image ivar in the drawRect method., now the user manipulate the view by rotating and scaling, also the user puts many more UIViews with different image ivar each, it can repe

Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-07 Thread Gustavo Pizano
elieve I can do better in this process. Thx Gustavo On Dec 7, 2010, at 1:59 PM, David Reed wrote: > > On Dec 7, 2010, at 3:16 AM, Gustavo Pizano wrote: > >> Hello Guys.. >> >> I see, I have been using GCD and blocks but on somme OSX app I did before, >&g

Re: Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-07 Thread Gustavo Pizano
m matrix... ?/ I will try that one also. Thanks for the replies.. Gustavo On Dec 7, 2010, at 4:22 AM, davel...@mac.com wrote: > > On Dec 6, 2010, at 9:21 PM, Laurent Daudelin wrote: > >> On Dec 6, 2010, at 17:16, davel...@mac.com wrote: >> >>> On Dec 6,

Updating progress of UIProgressView. And Getting Better Saving Performance

2010-12-06 Thread Gustavo Pizano
Hello. My application is saving some data, and it takes a while to do it, it can be 1 second to 10 sec around.. Im doing some image processing, The thing is.. I send the saving operation in another thread using the NSThread + detachNewThreadSelector:toTarget:withObject: method, and in the mai

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-12-01 Thread Gustavo Pizano
GREAT!!... Im sorry my head is overheated already, its 12 midnight here... :S Thanks David. On Dec 1, 2010, at 11:54 PM, David Duncan wrote: > On Dec 1, 2010, at 2:53 PM, Gustavo Pizano wrote: > >> I was reading the docs, and it says precisely what David said, if I rotate >&

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-12-01 Thread Gustavo Pizano
l the docs clearly says its undefined. Thanks Gustavo On Nov 30, 2010, at 7:11 PM, David Duncan wrote: > On Nov 30, 2010, at 9:49 AM, Gustavo Pizano wrote: > >> Any help or tip may be appreciate, my linear algebra is not that good ... >> :SS I wanna cry... > > >

Re: forwarding Touch Events

2010-12-01 Thread Gustavo Pizano
. > > Luke > > On Dec 1, 2010, at 12:06 PM, Gustavo Pizano wrote: > >> Hello all. >> >> in my iPad app I have a superview screen size and there im placing smaller >> subviews, when I touch one of those I need to place on top another custom >> view

forwarding Touch Events

2010-12-01 Thread Gustavo Pizano
Hello all. in my iPad app I have a superview screen size and there im placing smaller subviews, when I touch one of those I need to place on top another custom view which draw a circle around the taped subview, so the subview is exactly in the middle of the circle which is drawn in that view o

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread Gustavo Pizano
]; bc_parentscene is the superview.superview so I have a weak reference to it since creation, + for another functionality i need . . . Gustavo On Nov 30, 2010, at 7:11 PM, David Duncan wrote: > On Nov 30, 2010, at 9:49 AM, Gustavo Pizano wrote: > >> Any help or tip may be appreciat

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread Gustavo Pizano
Sorry keeping mail in the list, On Nov 30, 2010, at 7:29 PM, Gustavo Pizano wrote: > Hello David, thanks for the reply. > > I have replace the code for this: > > UITouch *aTouch = [touches anyObject]; > CGP

Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread Gustavo Pizano
Hello all. Im sorry maybe a little bit OT, because this is more mathematical, but I dunno how to achieve it. First, I have a view, which I can rotate, I can move around doing this: UITouch *aTouch = [touches anyObject]; CGPoint loc = [aT

Re: Little suggestion for many many images app, best approach.

2010-11-20 Thread Gustavo Pizano
esponse,, I will keep you informed of my progress. Gustavo On Nov 20, 2010, at 4:15 PM, Matt Neuburg wrote: > On Fri, 19 Nov 2010 21:47:34 +0100, Gustavo Pizano > said: >> Hello everyone. > >> The thing is.. because the user can drag many small images from one view >&g

Little suggestion for many many images app, best approach.

2010-11-19 Thread Gustavo Pizano
Hello everyone. Im starting a new iPad project, and Im having a dilemma here. WE have develop few apps using cocos2d great library BTW. but for this app Im required to draw 2 concentric circles filled with the area between them, this circle can enlarge or decrease while the user tap-drags inwa

Re: [OT]making app new modules display from within the app and not from the app store.

2010-08-26 Thread Gustavo Pizano
Wyatt Thanks a lot, I didn't know about this.. I will look into it right away. Gustavo On Aug 26, 2010, at 4:47 PM, Wyatt Webb wrote: > > On Aug 26, 2010, at 4:05 AM, Gustavo Pizano wrote: > >> Hello all, I know this isn't the right place so please don't

[OT]making app new modules display from within the app and not from the app store.

2010-08-26 Thread Gustavo Pizano
Hello all, I know this isn't the right place so please don't behead me if I offend you, but if you could help me, Im will be happy to hear you. We are developing an application with interactive children modules. The idea is that each time a new module is ready it will be submitted to Apple for

Re: Using NSPredicateEditor with core data

2010-08-13 Thread Gustavo Pizano
Expression *lhs = [superPredicate leftExpression], *rhs = > [superPredicate rightExpression]; > ... > > You would return a new predicate constructed from from the pieces of super's > predicate, except substitute in your own modifier. > > -Peter > > On Aug 13, 2010

Re: Using NSPredicateEditor with core data

2010-08-13 Thread Gustavo Pizano
.. :( Thx Gustavo On Aug 13, 2010, at 11:49 PM, Peter Ammon wrote: > > On Aug 13, 2010, at 8:45 AM, Gustavo Pizano wrote: > >> Hello all once again. >> >> I have been searching but I hadn't found something useful, so please before >> if you know a place

Using NSPredicateEditor with core data

2010-08-13 Thread Gustavo Pizano
Hello all once again. I have been searching but I hadn't found something useful, so please before if you know a place I can look at let me know. I have these 3 Entities ExpenditureGroup: name icon. --- toExpenditures. ->> Expenditure creationDate

Re: Can't resize Floating-Number NSTextfield in NSPredicateEditor.

2010-08-13 Thread Gustavo Pizano
Dave: Thanks worked like charm! . Gustavo On Aug 13, 2010, at 3:39 PM, Dave DeLong wrote: > NSPredicateEditorRowTemplate ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: Can't resize Floating-Number NSTextfield in NSPredicateEditor.

2010-08-13 Thread Gustavo Pizano
IB either! > > Dave DeLong > > Sent from my iPhone > > On Aug 13, 2010, at 7:33 AM, Gustavo Pizano > wrote: > >> Hello all, I come to you asking for humble guidance. >> >> after reading the way to resize the TextFields in some other topic, I tried >

Can't resize Floating-Number NSTextfield in NSPredicateEditor.

2010-08-13 Thread Gustavo Pizano
Hello all, I come to you asking for humble guidance. after reading the way to resize the TextFields in some other topic, I tried myself, without success.. This is what I have. A parent view which display the panel that contains the predicate editor, this predicate editor controller (NSWindowC

Re: Flip and Enlarge CALayer at the same time

2010-06-22 Thread Gustavo Pizano
Hello everybody once again. So I want to update my advances. IT'S WORKING NOW! lets say about 80% of it. this is what Im doing: - (void)enlargeCALayer{ CABasicAnimation * frameAnim = [CABasicAnimation animationWithKeyPath:@"position"]; [frameAnim setFromValue:[NSValue valueWit

Re: Flip and Enlarge CALayer at the same time

2010-06-22 Thread Gustavo Pizano
to make it better, I know it can be done better way, right now its not scaling but its repositioning the layer to the middle point of its superview :) so know im missing the scaling while repositioning. any suggestions? Gustavo On Jun 22, 2010, at 3:36 PM, Gustavo Pizano wrote: > Hello

Flip and Enlarge CALayer at the same time

2010-06-22 Thread Gustavo Pizano
Hello, Im trying to recreate a flip-n-scale of a CALayer, pretty much the same as in iPhoto when you click the info of a event, it will flipt and enlarge a layer, but the back side of the layer its another view. So this is what I have so far base on the GameGeek board game example from apple. -

Re: Getting notification when NSTextFieldCell end editing in a table view

2010-06-21 Thread Gustavo Pizano
Sorry.. go it, I was missing something. declare my Controller that implements that protocol :S G. On Jun 21, 2010, at 3:17 PM, Graham Cox wrote: > > On 21/06/2010, at 11:10 PM, Gustavo Pizano wrote: > >> I can't assign any delegate to the cell but to its view, so

Re: Getting notification when NSTextFieldCell end editing in a table view

2010-06-21 Thread Gustavo Pizano
n Jun 21, 2010, at 3:17 PM, Graham Cox wrote: > > On 21/06/2010, at 11:10 PM, Gustavo Pizano wrote: > >> I can't assign any delegate to the cell but to its view, so :S Im kinda >> lost here... > > > There is only one cell, and only one field editor. The vi

Re: Getting notification when NSTextFieldCell end editing in a table view

2010-06-21 Thread Gustavo Pizano
:10 PM, Gustavo Pizano wrote: > >> I can't assign any delegate to the cell but to its view, so :S Im kinda >> lost here... > > > There is only one cell, and only one field editor. The view will tell you > when it ends editing (and begins for that matter)

Getting notification when NSTextFieldCell end editing in a table view

2010-06-21 Thread Gustavo Pizano
Hello all. I think this has very simple question, yet I hadn't figure it out. I need to change the textColor of the NXTextFieldCell when the user its editing, and when the user finish editing put back the original color. I have this in the NSTableViewDelegate method: - (BOOL)tableView:(NSTabl

Why my Custom NSCollectionView drawRect is not being called when acceptinLayers?

2010-06-17 Thread Gustavo Pizano
Hello all. I have subclasses NSCollectionView to be able to draw a custom background gradient. When that collectoin view doesn't accepts layers or its parent view neither, the gradient its drawn, the drawRect method its called, but if the collection view accepts layer or its parent does, then

Re: Image Value Transformer setting image alpha less than 1.0

2010-06-14 Thread Gustavo Pizano
Ken hi. I have it checked on IB, so it shall return YES. G. On Jun 14, 2010, at 12:12 PM, Ken Ferry wrote: > > > On Mon, Jun 14, 2010 at 2:16 AM, Gustavo Pizano > wrote: > Hello Graham. > > So this is what I did, and its drawing ok. > > I subclasses the NS

Re: Image Value Transformer setting image alpha less than 1.0

2010-06-14 Thread Gustavo Pizano
will set some opacity ... Gustavo On Jun 11, 2010, at 3:09 PM, Graham Cox wrote: > > On 11/06/2010, at 10:59 PM, Gustavo Pizano wrote: > >> any idea why Im not getting full opacity? > > > Opacity is neither an image nor an NSImageView property, it's applied

Re: Image Value Transformer setting image alpha less than 1.0

2010-06-11 Thread Gustavo Pizano
Graham hello. In case its the context, what can be an approach to try? thx G. On Jun 11, 2010, at 3:09 PM, Graham Cox wrote: > > On 11/06/2010, at 10:59 PM, Gustavo Pizano wrote: > >> any idea why Im not getting full opacity? > > > Opacity is neither an image nor

Re: Image Value Transformer setting image alpha less than 1.0

2010-06-11 Thread Gustavo Pizano
On Jun 11, 2010, at 3:09 PM, Graham Cox wrote: > > On 11/06/2010, at 10:59 PM, Gustavo Pizano wrote: > >> any idea why Im not getting full opacity? > > > Opacity is neither an image nor an NSImageView property, it's applied when > the image is drawn (

Image Value Transformer setting image alpha less than 1.0

2010-06-11 Thread Gustavo Pizano
Hello all.. In my Core Data app, Im fetching a NSData property corresponding an image. Now Im binding an NSImageWell value to the Entity's array controller and setting the propper keypath and setting the value transformer to IZImageTransformer The image value for each MO appears but I realized

NSProgressIndicator on StatusBar working on 10.6 but not 10.5

2010-06-10 Thread Gustavo Pizano
Hello all.. I have a StatusItem on the StatusBar, and when the app its doing something Im placing a NSProgressIndicator SpinnerStyle as the view of the StatusItem. On 10.6 it shows normal, but on 10.5 when I replace the image of the StatusItem for the progress indicator view, then I see a white

Re: Creating a NSTableView cell the "iPhone way"

2010-06-10 Thread Gustavo Pizano
ow i need to support selection of that text. I will give it a try then. Thx G. On Jun 10, 2010, at 11:12 AM, Alastair Houghton wrote: > On 10 Jun 2010, at 08:37, Gustavo Pizano wrote: > >> Well I have created custom table view cells in the way that I create my >> subc

Creating a NSTableView cell the "iPhone way"

2010-06-10 Thread Gustavo Pizano
Hello all Well I have created custom table view cells in the way that I create my subclass of NSCell, and then in the -(void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView method I make the drawing. now i wonder if I can do it the iPHone way, create a xib with a NSCell view, pla

Re: rendering PDF on iPad's

2010-05-26 Thread Gustavo Pizano
, Gustavo Pizano wrote: > Hello all. > > Another question still regarding with pdf's. > > when I load a pdf into a web view, I can tap for a while and the > magnification loop will appear, this doesn't happens when using Quartz.. > I was reading some post on i

Re: rendering PDF on iPad's

2010-05-26 Thread Gustavo Pizano
. Is there any other way? or I will have to do this by hand?, Also what can you tell me about allowing selection in the pdf? I hadn't figure that out... :( Thanks for the help Gustavo On 19.5.2010, at 15:08, Gustavo Pizano wrote: > Rafael hi > > Thanks for the info,, I will

Re: migrating CoreData data model doesn't work

2010-05-21 Thread Gustavo Pizano
ilerplate code. > > http://github.com/rentzsch/mogenerator > > Hal > > On May 21, 2010, at 4:53 AM, Gustavo Pizano wrote: > >> Now if you have custom methods in your MO's then what I do is that I don't >> delete, or create a new one, but simply add by

Re: migrating CoreData data model doesn't work

2010-05-21 Thread Gustavo Pizano
Rainer hello. Have you created once again the ManagedObjects from the model?.. If so and you didn't remove the old ones, Xcode will start complaining A LOT (don't ask me why but it happened to me when I did it), then I realize I had to delete the old MO .m and .h files and generate again form t

Re: NSData from CGPDFPageRef

2010-05-20 Thread Gustavo Pizano
Hello Christian This method was given to me yesterday by Jack Nutting... I dunno if its what you are looking for. On Wed, May 19, 2010 at 12:07 PM, Gustavo Pizano wrote: > Hello all. > > I would want to know if I can render pdf into iPad using quartz, or I have > to use UIW

Re: Why I can't see my localized nib?

2010-05-19 Thread Gustavo Pizano
But frankly, I don't see why you have to do this. If you want your > application to run in sk (slovak?) then leave only this lproj in your app. > > Frédéric > > PS: sorry, I read one more time. If it's an option left to the user your > method can be correct. registerD

Re: rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
get to use instruments. > > > Le 19 mai 2010 à 07:32, Gustavo Pizano a écrit : > >> Laurent hi. >> About your warning. >> >> SO If I have a pdf of many many pages, I shall just open de CGPDFDocument, >> then get the required page using CGPDFDocumetnGetPag

Re: rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
F API. However be careful on memory usage (in particular > keeping the CGPDFDocument open all the time could lead to some memory issues > that could be workarounded by closing and reopening it) > > Regards > > laurent > > > On Wednesday, May 19, 2010, at 12:07PM,

Re: rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
Aha .. ok.. :P np. G On 19.5.2010, at 13:11, Jack Nutting wrote: > On Wed, May 19, 2010 at 1:06 PM, Gustavo Pizano > wrote: >> Hello Jack and Laurent. >> >> So I will see the CGPDF API, also what Jack wrote. >> >> The idea its very simple, load pdf and b

Re: rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
thing like this, so I wanna make sure I have the basics well understood. Gustavo On 19.5.2010, at 12:13, Jack Nutting wrote: > On Wed, May 19, 2010 at 12:07 PM, Gustavo Pizano > wrote: >> Hello all. >> >> I would want to know if I can render pdf into iPad using quar

rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
Hello all. I would want to know if I can render pdf into iPad using quartz, or I have to use UIWebView... or whats the way to achieve this? Any headlights are appreciate it. thanks Gustavo ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: Why I can't see my localized nib?

2010-05-18 Thread Gustavo Pizano
So at app start up I can get the Application defaults objectforkey "AppleLanguages", then set array with the first object to be "sk_SK" and then push the array again back to the application defaults.. right? And if the user selects for example English I must do the above, and restart the applic

Re: Why I can't see my localized nib?

2010-05-18 Thread Gustavo Pizano
No problem... In this case.. is tehre anyway to let teh user choose what lang to use?.. I mean if I localize my app, but the user has no localization either, how to make the app run in a given language (i.e sk)? G. PS: thanks for the help tough On 18.5.2010, at 17:46, Joanna Carter wrote: > H

Re: Why I can't see my localized nib?

2010-05-18 Thread Gustavo Pizano
Joanna Hello. Ok I tried again with French lang, run it and din't work, clean target and rerun and it worked.. Now I made for sk_SK lang same procedure as before, (changing the lang of the system) and it didn't work. I took the codes from the ISO docs and when I open the xib of slovak lang it s

Re: Why I can't see my localized nib?

2010-05-17 Thread Gustavo Pizano
MMM I dunno about that.. I was just selecting French from the pop up list when I clicked the "Make localizable" button under info of the xib file, and then I put in the first position of the lang list under system preferences French language... re build re run and nothing, I logout and login ag

Re: Can't get the formatted number of NSTextfield

2010-05-17 Thread Gustavo Pizano
HEllo Fritz Yep. Im using the obejctValue of the TextField and getting the DecimalNumber now. and Im changing that double as you suggested. Thanks for the reply. On 17.5.2010, at 22:51, Fritz Anderson wrote: > On 17 May 2010, at 7:15 AM, Gustavo Pizano wrote: > >> >>

  1   2   3   4   >