Checking facts on NSCell (e.g. in NSTableView)

2009-01-08 Thread Luke Evans
To date I've taken cells for granted when working with NSTableViews and the like. I've just set up the appropriate bindings to text or image data and lo the standard NSCell subclasses do their thing. Now however I have reason to want to do something 'funkier' in a table cell: I want to draw

Re: Checking facts on NSCell (e.g. in NSTableView)

2009-01-08 Thread Graham Cox
On 8 Jan 2009, at 7:31 pm, Luke Evans wrote: By way of further example, if you had a data model containing some objects that have, say, an NSColor property, and you want to paint a simple colour swatch in a custom cell, is there no simple way of binding the NSColor value to the cell and

Re: Checking facts on NSCell (e.g. in NSTableView)

2009-01-08 Thread Kyle Sluder
On Thu, Jan 8, 2009 at 3:31 AM, Luke Evans l...@eversosoft.com wrote: Am I wrong about this interpretation of what I'm reading? Yes, take a look at -setObjectValue:. This point confused me for ages. You can bind the cell's value to whatever object you like, and in -setObjectValue: extract the

Accessing Customize Toolbar items created in ni b file

2009-01-08 Thread Simon James
Hi, I am needing to access the toolbar items (which are created in the nib/ xib file) in the Customize Panel before they are drawn for translation purposes. I know that this is not the standard way to create translation, but the project is a very large existing project (with lots of

Recording video from a QCView to .mov

2009-01-08 Thread Jonathan Selander
Hi, I'm trying to record video form a webcam input to a .mov file. I've made a simple quartz composition and loaded it in a QCView. I tried using code from the QCTV example bundled with XCode, but there are things I'm not really sure about there. For instance, do i need to use OpenGL for

Re: Convert GWorldPtr into a NSImage

2009-01-08 Thread Michael Vannorsdel
Have a look at vImagePermuteChannels_ARGB in the Accelerate framework. Should be the fastest and easiest option for reordering color components in pixel streams. On Jan 7, 2009, at 4:27 PM, Eric Gorr wrote: Well, I wrote the code to change the pixel format from BGRA to ARGB. Running

[iPhone] Update table cell text on selection in other view

2009-01-08 Thread Martijn van Exel
Hi all, I have a UITableView with a cell that the user taps to select an item from a large list. This list is provided in another view controller that is pushed onto view when the user taps the button. So far so good. Then the user makes a selection from the UITableView by tapping and the value

Re: App Listener?

2009-01-08 Thread Jerry Krinock
On 2009 Jan, 07, at 22:46, Chunk 1978 wrote: does this work with Dashboard? it seems that dashboard is a background application that's always open... Well, obviously it does not. You'd need a NSWorkspaceDidActivateApplicationNotification, but it looks like there is no such thing. You

Re: Convert GWorldPtr into a NSImage

2009-01-08 Thread Eric Gorr
On Jan 7, 2009, at 7:39 PM, Graham Cox wrote: On 8 Jan 2009, at 10:27 am, Eric Gorr wrote: On Jan 7, 2009, at 11:31 AM, Daniel Kennett wrote: To further support this theory, take a look at this NSImage where I mistakenly only flipped half of my data - the garbled half of the image is

Re: Convert GWorldPtr into a NSImage

2009-01-08 Thread Eric Gorr
On Jan 8, 2009, at 6:57 AM, Michael Vannorsdel wrote: Have a look at vImagePermuteChannels_ARGB in the Accelerate framework. Should be the fastest and easiest option for reordering color components in pixel streams. Looks nearly perfect ... unfortunately, it does not look like it

Re: [iPhone] [SOLVED] Update table cell text on selection in other view

2009-01-08 Thread Martijn van Exel
Well, I figured it out, I need to put a [self.tableView reloadData]; in the viewWillAppear handler. Now it works fine. Thanks! Martijn On Thu, Jan 8, 2009 at 13:11, Martijn van Exel mve...@gmail.com wrote: Hi all, I have a UITableView with a cell that the user taps to select an item from

Re: Convert GWorldPtr into a NSImage

2009-01-08 Thread Michael Vannorsdel
vImage_Buffer struct has a field for row bytes as well as image dimensions. On Jan 8, 2009, at 6:54 AM, Eric Gorr wrote: Looks nearly perfect ... unfortunately, it does not look like it will take the rowBytes of the GWorldPtr data into account. But, it may still be faster to create a

Re: App Listener?

2009-01-08 Thread Rainer Brockerhoff
At 05:55 -0800 08/01/09, cocoa-dev-requ...@lists.apple.com wrote: From: Jerry Krinock je...@ieee.org References: 63539670901072146w570a8dc1wc13c58b8ecb43...@mail.gmail.com f9d125f1-0873-4967-893a-20e851278...@codeferous.com 63539670901072246j1f659c63q33a73b501233f...@mail.gmail.com

Re: Removing CALayer after Animation

2009-01-08 Thread Matt Long
No. It is a CABasicAnimation, but it also works with a CAKeyframeAnimation. I modified the example project from this blog post: http://www.cimgf.com/2008/11/05/core-animation-tutorial-interrupting-animation-progress/ to demonstrate this. The modified project is here:

Re: App Listener?

2009-01-08 Thread James Montgomerie
On 8 Jan 2009, at 14:14, Rainer Brockerhoff wrote: Today, the only solution seems to be to install a Carbon Event handler for the {kEventClassApplication, kEventAppFrontSwitched} event. Even if such a NSWorkspace notification were to appear in a future version of Mac OS X, I'd be

Re: -[NSView window] returns nil if its NSTabView not selected

2009-01-08 Thread Jerry Krinock
Thank you for your usual good explanation, Quincey. A couple more wrinkles which I was not sure about but confirmed by testing... -[NSView viewDidMoveToWindow] ... is also invoked for views not in tabs, before -awakeFromNib is invoked whenever a view is moved into or out from a window,

Re: Custom tracking in a NSTextFieldCell

2009-01-08 Thread Eric Gorr
If it matters, this is within a NSOutlineView. In the Control and Cell Programming Topics for Cocoa guide, it does state: Controls manage the behavior of their cells. By inheritance from NSView, controls derive the ability for responding to user actions and rendering their on-screen

Re: Can I call unbind: in finalize? Is it thread safe?

2009-01-08 Thread Sean McBride
On 1/7/09 2:25 PM, Ron Lue-Sang said: You don't need to call unbind: from finalize. If you're an observer of some other object, and you haven't removed yourself as an observer by the time you're in finalize... well, try to clean up any observing by the time you hit finalize. When do AppKit

Re: Returning value from detached NSThread selector with multiple arguments.

2009-01-08 Thread Scott Ribe
Careful! Unless you're synchronizing access to the mutable dictionary, this is not thread-safe. Even if it appears to work in some cases, it's likely to blow up in your face in real-world use. Right, in general, but I don't see any problem with the proposed use, since there's adequate

Re: App Listener?

2009-01-08 Thread Jonathan Hendry
On Jan 8, 2009, at 09:14 AM, Rainer Brockerhoff wrote: At 05:55 -0800 08/01/09, cocoa-dev-requ...@lists.apple.com wrote: From: Jerry Krinock je...@ieee.org References: 63539670901072146w570a8dc1wc13c58b8ecb43...@mail.gmail.com f9d125f1-0873-4967-893a-20e851278...@codeferous.com

Re: Can I call unbind: in finalize? Is it thread safe?

2009-01-08 Thread Sean McBride
On 1/7/09 10:12 PM, Kyle Sluder said: When do AppKit views call unbind:? You say you're familiar with mmalc's recommendations... but this question is explicitly addressed in the Unbinding section. I assume you want to call -unbind: so as to remove your view from observing a controller (doing

Is disabling global colormap for animated gif ignored?

2009-01-08 Thread Patrick Haruksteiner
Hello, I'm trying to export an animation as animated gif. Adding all frames to the gif, setting loop count and writing the file works fine. But my choice if the gif should have a global colormap or not is ignored. here the code I tried: NSMutableDictionary *gifImageProperties =

Mail Activity sliding widget question

2009-01-08 Thread Sam Krishna
I've been looking for a while now how to replicate a widget like Mail.app's Mail Activity slide-up/slide-down panel (the animation, not the widget itself). The several times I've tried NSViewAnimation, it seemed to be a non- starter. The bits and pieces that I've worked with CoreAnimation

Re: App Listener?

2009-01-08 Thread Rainer Brockerhoff
At 15:09 + 08/01/09, James Montgomerie wrote: On 8 Jan 2009, at 14:14, Rainer Brockerhoff wrote: Today, the only solution seems to be to install a Carbon Event handler for the {kEventClassApplication, kEventAppFrontSwitched} event. If you don't mind asking your users to switch on

Re: Returning value from detached NSThread selector with multiple arguments.

2009-01-08 Thread Michael Ash
On Thu, Jan 8, 2009 at 11:08 AM, Scott Ribe scott_r...@killerbytes.com wrote: Careful! Unless you're synchronizing access to the mutable dictionary, this is not thread-safe. Even if it appears to work in some cases, it's likely to blow up in your face in real-world use. Right, in general,

Re: [iPhone] Search control like in App Store

2009-01-08 Thread Mohan Parthasarathy
The problem was that my WebViewController had an empty stub loadView though the actual work was done in ViewDidLoad. When i read the documentation it does say that when you load a ViewController using initWithNiBName use ViewDidLoad and not loadView. But i did not know that an empty loadView could

[NSOutlineView reloadData]

2009-01-08 Thread David Blanton
Is there a way to be notified when a reloadData operation is complete? David Blanton ___ 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

Re: Recording video from a QCView to .mov

2009-01-08 Thread David Duncan
On Jan 8, 2009, at 1:47 AM, Jonathan Selander wrote: I'm trying to record video form a webcam input to a .mov file. I've made a simple quartz composition and loaded it in a QCView. I tried using code from the QCTV example bundled with XCode, but there are things I'm not really sure about

Re: [iPhone] Search control like in App Store

2009-01-08 Thread mmalc Crawford
On Jan 8, 2009, at 9:37 AM, Mohan Parthasarathy wrote: The problem was that my WebViewController had an empty stub loadView though the actual work was done in ViewDidLoad. When i read the documentation it does say that when you load a ViewController using initWithNiBName use ViewDidLoad and

Re: App Listener?

2009-01-08 Thread Ken Thomases
On Jan 8, 2009, at 7:39 AM, Jerry Krinock wrote: On 2009 Jan, 07, at 22:46, Chunk 1978 wrote: does this work with Dashboard? it seems that dashboard is a background application that's always open... Well, obviously it does not. You'd need a NSWorkspaceDidActivateApplicationNotification,

Encryption and Security

2009-01-08 Thread Matt Keyes
Hello, I am working on an iPhone app that communicates with a .NET SOAP web service. I have the SOAP client down, but now I need to think about the security. The .NET web service ultimately will be validating the Windows login as part of the communication process, and I am trying to think

Re: How to obtain icon displayed by Finder for a file

2009-01-08 Thread David
I was thinking using NSAttributedString seems like a more general purpose solution because they sound powerful and can be used all over the place. I've used it for HTML which seems like way overkill for this. But I haven't successfully come up with a string that looks correct, whereas I have been

Re: [NSOutlineView reloadData]

2009-01-08 Thread j o a r
On Jan 8, 2009, at 9:42 AM, David Blanton wrote: Is there a way to be notified when a reloadData operation is complete? What do you mean with complete? It's a regular synchronous method call, so it's completed when it returns. I bet there's something that you're trying to do that you're

iPhone UIView: How do I animate the addition/entrance of a window's subview?

2009-01-08 Thread fclee
Background: @interface ScanView : EAGLView AbstractViewProtocol, ScannerDelegate --- subclass of UIView. - The following code is typical for loading the 'scanView' subView into its parent window: [window addSubview:scanView]; // ...this is what I'm doing now. The end result is

Re: Mail Activity sliding widget question

2009-01-08 Thread Volker in Lists
Hi, you can animate a NSSplitView easily to achieve this effect. I use the following code to animate the resize of a split view after the users clicks a button: - (IBAction)toggleSplitDisplay:(id)sender { NSSize newSize = [detailSplit frame].size;

Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
My error ... I thought reloadData was asynchronous! On Jan 8, 2009, at 11:30 AM, j o a r wrote: On Jan 8, 2009, at 9:42 AM, David Blanton wrote: Is there a way to be notified when a reloadData operation is complete? What do you mean with complete? It's a regular synchronous method

Re: NSOutlineView indentation

2009-01-08 Thread James Walker
Bill Monk wrote: On Jan 7, 2009, James Walker wrote: Having the indentation affect the top level may be technically consistent, but I don't know why anyone would want it to work that way. Yes, I agree. Top-level items should stay near the left margin, and setting the indent to 0 should

Re: App Listener

2009-01-08 Thread j.varela
On 2009 Jan, 07, at 22:46, Chunk 1978 wrote: does this work with Dashboard? it seems that dashboard is a background application that's always open... Well, obviously it does not. You'd need a NSWorkspaceDidActivateApplicationNotification, but it looks like there is no such thing. You could

Re: Tiger vs Leopard Printing

2009-01-08 Thread chaitanya pandit
Am not sure but have a look at : NSPrintPanelAccessorizing Protocol Reference -Chaitanya On 08-Jan-09, at 6:55 AM, David Blanton wrote: I build my app with the MACOSX10.4u.sdk. When the following is executed: [[NSPrintOperation printOperationWithView:catalog]

Re: App Listener

2009-01-08 Thread j.varela
On 2009 Jan, 07, at 22:46, Chunk 1978 wrote: does this work with Dashboard? it seems that dashboard is a background application that's always open... Well, obviously it does not. You'd need a NSWorkspaceDidActivateApplicationNotification, but it looks like there is no such thing. You could

A custom cell in a NSOutlineView

2009-01-08 Thread Eric Gorr
Here is a picture of what I need to do: http://ericgorr.net/cocoadev/customcell/customcell.png Basically, I need a NSOutlineView which can contain a set of selectable images with titles that can be edited. It also needs to support keyboard navigation and when a section is opened (like

Re: [NSOutlineView reloadData]

2009-01-08 Thread j o a r
On Jan 8, 2009, at 11:07 AM, David Blanton wrote: My error ... I thought reloadData was asynchronous! It all depends on what you're after. Display updates are almost always delayed in Cocoa, meaning that the outline view will not show updated contents after your call to reloadData. All

Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
I want to look through all the items, find the last one selected before the app terminated so I can reselect that item. I wanted to be sure that all items were loaded before I started looking. Since reloadData is synchronous (thank you) I call my finding method right after the reloadData

Re: [NSOutlineView reloadData]

2009-01-08 Thread Shawn Erickson
On Thu, Jan 8, 2009 at 12:04 PM, David Blanton aired...@tularosa.net wrote: I want to look through all the items, find the last one selected before the app terminated so I can reselect that item. I wanted to be sure that all items were loaded before I started looking. Since reloadData is

Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
To clarify. App is running. User selects an item in the outline view. User quits app. In windowWillClose save to user defaults an identifier for the item selected in the outline view. At start up reload the outline view etc etc as already described. On Jan 8, 2009, at 1:36 PM, Shawn

Re: Checking facts on NSCell (e.g. in NSTableView)

2009-01-08 Thread Luke Evans
Thanks Kyle and Graham for your comments. Am I wrong about this interpretation of what I'm reading? Yes, take a look at -setObjectValue:. This point confused me for ages. You can bind the cell's value to whatever object you like, and in -setObjectValue: extract the relevant information

Contract Job Opening

2009-01-08 Thread Kenneth Clark
Contract Position Available: Cocoa Developer Production Resource Group, LLC (PRG) is the world’s leading supplier of entertainment technology solutions, including lighting, audio, projection, scenery, and automation systems. PRG serves a wide range of markets, including theatre, concert

Re: Custom tracking in a NSTextFieldCell

2009-01-08 Thread Eric Gorr
Well, I was finally able to spot the delegate method: -outlineView:shouldTrackCell:forTableColumn:item: and simply return YES. This caused trackMouse startTrackingAt to be called, but this isn't useful until stopTracking is called. For some reason, it isn't. I would be interested in

Re: Checking facts on NSCell (e.g. in NSTableView)

2009-01-08 Thread Corbin Dunn
Thanks Kyle and Graham for your comments. Am I wrong about this interpretation of what I'm reading? Yes, take a look at -setObjectValue:. This point confused me for ages. You can bind the cell's value to whatever object you like, and in -setObjectValue: extract the relevant information

Re: A custom cell in a NSOutlineView

2009-01-08 Thread Corbin Dunn
My second idea is that I could just dynamically add and remove columns rows, but the problem is that in order to display the group titles, the column they are displayed in needs to be wide...when I added multiple columns, the column of the group title was never wide enough - they would

[RESOLVED] Checking facts on NSCell (e.g. in NSTableView)

2009-01-08 Thread Luke Evans
Great - thanks a lot for clearing that up. Let's just say the docs (including the guide) leave a little to be desired in terms of explaining how this works. Please log a documentation bug requesting it to be clarified; this is good feedback, and we can make our docs better with proper

Re: [RESOLVED] Checking facts on NSCell (e.g. in NSTableView)

2009-01-08 Thread Corbin Dunn
Will do. I'm going to subclass NSTextFieldCell for now. I'll be drawing various bits of text and probably an icon. It's probably a bit of a stretch to say my derived cell is really a text cell, which is why I thought to directly subclass NSCell, but it's good enough for now - and I'm

Re: iPhone UIView: How do I animate the addition/entrance of a window's subview?

2009-01-08 Thread Robert Marini
You can initialize the view with a frame that is positioned off screen and then use implicit animation to bring it in. Alternatively, a subtler approach would be to animate it's appearance in by animating the change in alpha value from 0 to 1. For instance - scanView.alpha = 0.0; [UIView

Re: Large Core Data memory allocations for small rows

2009-01-08 Thread Benjamin Rister
If you can reproduce this in a sample project with your model, you should definitely file a bug. If you can attach your program and steps to reproduce, you could file a bug with that as well. I've filed Radar 6480291 with the app, user's data file, and instructions. For the archives,

CALayer not displaying masked CGImage properly

2009-01-08 Thread Rob Boellaard
Hi everybody, I am trying to learn CoreGraphics and CoreAnimation, things were going well, but now I seem to be stuck. I have an image mask (CGImageRef) that displays nicely when I draw it directly in an NSView. But when I add the same image mask to a CALayer which I then add to a

Re: Dock menu item action isn't performed in modal state

2009-01-08 Thread Ondrej Valik
On 7.1.2009, at 23:06, Peter Ammon wrote: On Jan 7, 2009, at 8:05 AM, Ondrej Valik wrote: Hello. I'm using delegate's applicationDockMenu: method for returning my custom dock menu. It has a single menu item. This menu item has its target/action properly set up and my dock menu delegate

Hyperlinks

2009-01-08 Thread Matthew Morton
Hi all, I have a NSTextField in Interface Builder that is quite large and includes a number of lines, one of which I want to be a hyperlink. I have bound the value of the NSTextField to an NSAttributedString in a custom class and set attributes for NSLinkAtributeName,

PDF Problem

2009-01-08 Thread Devon Govett
Hello everyone, I have developed an application that converts a PDF to a bitmap image. The program creates an image in which all of the pages in the PDF are stacked - one on top of the other. But I have a problem. When the program is run on a PowerPC running Tiger, the quality is

NSDecimalNumber seen as NSCFNumber; a bug?

2009-01-08 Thread Davide Benini
Hello folks, I have run into a strange issue. I have a LineItem class featuring a NSDecimalNumber *unitaryPrice property. The property works allright all across my app, except in a single view controller. I have this LineItemDataPickerViewController (UIViewController subclass) with

Re: Encryption and Security

2009-01-08 Thread Arsen Pereymer
Matt, I have done several implementations similar to what you mention. Here are some pointers (I can send you code too if you would like): When sending any sensitive data (i.e. username. password, etc...) via WS from iPhone, encrypt the data (I like to use MD5)  before sending to the WS.

Re: Hyperlinks

2009-01-08 Thread Greg Titus
Hi Matt, You need to use an NSTextView here rather than an NSTextField. The behavior you are seeing is because an NSTextField is not 'active' until clicked upon, and then it gets the window's field editor (which is a shared NSTextView used by all fields on the window), and places that

What's the most cocoa-ey pattern for this?

2009-01-08 Thread Michael B Johnson
So I have a Sequence of Elements, ordered by Time. Elements cannot overlap each other, they can only be strung in a temporal line, with no gaps (i.e. the end of one element abuts another, unless its at the front or end). In addition to these Elements, we can drop Markers on this sequence,

Re: Convert GWorldPtr into a NSImage

2009-01-08 Thread Graham Cox
On 9 Jan 2009, at 12:53 am, Eric Gorr wrote: Interesting. It looks like the function has a pixelFormatType parameter, so there is no need to place it in the attributes dictionary. While it does look like I could get a CVPixelBufferRef, what is unclear is how I could get a NSImage from the

Re: Encryption and Security

2009-01-08 Thread Don Messerli
Hate to be a stickler for semantics; but here I go. MD5 is a hashing algorithm, not encryption. In general, it is not reversible. You hash the password, send it across and then compare it with the hashed password on the server side. Encryption is a two-way process. You encrypt the data,

Best way to handle this

2009-01-08 Thread development2
I am hoping someone can help me figure out the best way to handle this, I am sure someone out there has some experience with this. I have some code that sends a command to an external hardware device and waits to get the response back with the info that was requested of the device. Now

Re: Tiger vs Leopard Printing

2009-01-08 Thread Raleigh Ledet
David, Does your code assume that the pages will be printed only once and in order during the print cycle? -raleigh On Jan 7, 2009, at 5:25 PM, David Blanton wrote: I build my app with the MACOSX10.4u.sdk. When the following is executed: [[NSPrintOperation

Getting to the Console Logs

2009-01-08 Thread Reza Farhad
Hi I hope this is the right place to be asking this question. To get to the bottom of some bugs, I want to also have a look at the console Logs that might have been generated by my app or relating to my app. Now where are these files or how can I extract them programatically. Thanks in

Re: What's the most cocoa-ey pattern for this?

2009-01-08 Thread j o a r
On Jan 8, 2009, at 2:59 PM, Michael B Johnson wrote: This Sequence has a delegate, that would like to express interest in the following: (1) when the current time moves forward into the beginning of an Element or Marker. (2) when the current time moves backward into the end of an

Re: What's the most cocoa-ey pattern for this?

2009-01-08 Thread Greg Titus
Hey Wave, Is the Sequence delegate interested in all Element/Markers moved into and out of? Or only some small subset? If the former, you really just want something like: NSNotificationCenter* ctr = [NSNotificationCenter defaultCenter]; SEL s = @selector(enteredElement:); [ctr

Re: What's the most cocoa-ey pattern for this?

2009-01-08 Thread Greg Titus
On Jan 8, 2009, at 3:28 PM, j o a r wrote: On Jan 8, 2009, at 2:59 PM, Michael B Johnson wrote: This Sequence has a delegate, that would like to express interest in the following: (1) when the current time moves forward into the beginning of an Element or Marker. (2) when the current

Re: What's the most cocoa-ey pattern for this?

2009-01-08 Thread Michael B Johnson
On Jan 8, 2009, at 3:28 PM, j o a r wrote: On Jan 8, 2009, at 2:59 PM, Michael B Johnson wrote: This Sequence has a delegate, that would like to express interest in the following: (1) when the current time moves forward into the beginning of an Element or Marker. (2) when the current

Re: What's the most cocoa-ey pattern for this?

2009-01-08 Thread Michael B Johnson
On Jan 8, 2009, at 3:31 PM, Greg Titus wrote: On Jan 8, 2009, at 3:28 PM, j o a r wrote: On Jan 8, 2009, at 2:59 PM, Michael B Johnson wrote: This Sequence has a delegate, that would like to express interest in the following: (1) when the current time moves forward into the beginning

Re: Can I call unbind: in finalize? Is it thread safe?

2009-01-08 Thread Rob Keniger
On 09/01/2009, at 2:12 AM, Sean McBride wrote: I'm inclined to agree. However, mmalc's page says If your view may become full screen, then you should ideally use another invalidation method to mark when the view is finished with and unbind in that, otherwise you should unbind in finalize.

Resetting the TableView

2009-01-08 Thread Mohan Parthasarathy
Hi, I try to reuse UIViewControllers in didSelectatRowIndexPath. The new View has a table which is filled with data eventually. Later the view gets popped and when reusing the same ViewController the table shows old data. Is there a way to clear the data while still reusing ViewControllers (as

Re: Resetting the TableView

2009-01-08 Thread sanchezm
UITableView has a reloadData method - Miguel On Jan 8, 2009, at 3:58 PM, Mohan Parthasarathy wrote: Hi, I try to reuse UIViewControllers in didSelectatRowIndexPath. The new View has a table which is filled with data eventually. Later the view gets popped and when reusing the same

Re: Resetting the TableView

2009-01-08 Thread Mohan Parthasarathy
Yes, but where will call this when the ViewController is being made active. The new view was filled with data previously and i need a chance to reset it. Could you explain in little bit more detail ? thanks mohan On Thu, Jan 8, 2009 at 4:04 PM, sanchezm sanchez...@gmail.com wrote:

Re: Resetting the TableView

2009-01-08 Thread Wyatt Webb
Have a look at viewWillAppear/viewDidAppear and viewWillDisappear/ viewDidDisappear on the UIViewController class You could clear out the table data on the disappear step (so you aren't holding data you don't need) or wait for the appear phase to set up your data before it's shown. These

Re: NSDecimalNumber seen as NSCFNumber; a bug?

2009-01-08 Thread Ashley Clark
Do you have an NSNumberFormatter applied to unitaryPrice somewhere that is not set to generate decimal numbers? The documentation indicates that generating NSDecimalNumbers is on by default, but just dragging the NSNumberFormatter to an empty XIB over here doesn't start with it ticked off

Re: NSDecimalNumber seen as NSCFNumber; a bug?

2009-01-08 Thread Quincey Morris
On Jan 8, 2009, at 08:49, Davide Benini wrote: And here the application terminates and I get this error message *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFNumber decimalNumberByRoundingAccordingToBehavior:]: unrecognized selector sent

Re: What's the most cocoa-ey pattern for this?

2009-01-08 Thread j o a r
On Jan 8, 2009, at 3:34 PM, Michael B Johnson wrote: @property (readonly) NSMutableSet *activeMarkers; You're right - it should be a set, not an array. But would it be mutable if it's readonly? What are the correct semantics for that, actually? The readonly attribute only refers to

Re: Encryption and Security

2009-01-08 Thread Peter N Lewis
At 17:54 + 8/1/09, Matt Keyes wrote: I am working on an iPhone app that communicates with a .NET SOAP web service. I have the SOAP client down, but now I need to think about the security. The .NET web service ultimately will be validating the Windows login as part of the communication

Re: Best way to handle this

2009-01-08 Thread Nathan Kinsinger
On Jan 8, 2009, at 4:20 PM, development2 wrote: I am hoping someone can help me figure out the best way to handle this, I am sure someone out there has some experience with this. I have some code that sends a command to an external hardware device and waits to get the response back with

Problem sending notification from C callback function

2009-01-08 Thread Sandro Noel
Greetings. I'm having a little problem due to lack of knowledge here. I have this callback from DiskArbritation framework and I would like to send a notification to my app. but it does not seem to work. the callback is registered like this. daSession =

Re: Resetting the TableView

2009-01-08 Thread Mohan Parthasarathy
Hi, I tried all four entry points, they are not getting called. My ViewController is initialized using initWithNibName. First time, viewDidLoad gets called. After that, neither viewDidLoad nor the ones you mention gets called. Do i need to do anything special ? thanks mohan On Thu, Jan 8,

NSPersistentStoreCoordinator Wars Episode I: The Phantom Lock Menace

2009-01-08 Thread Nick Zitzmann
Yes, I did try searching and found nothing interesting... I'm working on a project that uses CoreData objects on multiple threads at once, where it's not uncommon for the main thread to be loading data at the same time that an NSOperation running in the background is processing a different

Re: Problem sending notification from C callback function

2009-01-08 Thread Sean McBride
Sandro Noel (sandro.n...@mac.com) on 2009-01-08 8:57 PM said: DARegisterDiskDisappearedCallback(daSession, NULL, DiskDisappearedCallback, (void *)self); Is your application garbage collected? If so, passing self as the context could be problematic. See:

Re: Hyperlinks

2009-01-08 Thread Sean McBride
Matthew Morton (mattmor...@me.com) on 2009-01-08 7:02 AM said: have bound the value of the NSTextField to an NSAttributedString in a custom class and set attributes for NSLinkAtributeName, NSForegroundColorAtributeName, and NSUnderlineStyleAttributeName. If you're interested, you can get the

setting accessibility links for cocoa applications in IB

2009-01-08 Thread Yi Qiang
Hi, I am trying to enable accessibility in one of my features and need a bit of help figuring out how to do it in IB. Specifically, I want to relate a label and a text field, e.g Server: server address. The Accessibility Programming Guideline For Cocoa (url) states: To do this, you create an

setting accessibility links for cocoa applications in IB

2009-01-08 Thread Yi Qiang
Hi, I am trying to enable accessibility in one of my features and need a bit of help figuring out how to do it in IB. Specifically, I want to relate a label and a text field, e.g Server: server address. The Accessibility Programming Guideline For Cocoa (url) states: To do this, you create an

Re: Encryption and Security

2009-01-08 Thread Andrew Farmer
On 08 Jan 09, at 16:44, Peter N Lewis wrote: * If you use any non-system encryption for purposes other that just authentication then you'll need to sort out the US Export approval drivel. Don't worry about ITAR - it's a non-issue. There are a few types of cryptographic exports that still

Help

2009-01-08 Thread Parker Logan
I am new to all this so if any one can help please do. Thank you From: LIL PLO ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Please help

2009-01-08 Thread Parker Logan
Please can any one teach me about code I just started and I want to learn. Thanks for your time Begin forwarded message: From: Parker Logan parkl...@yahoo.com Date: January 9, 2009 4:11:52 AM GMT+02:00 To: Cocoa Developers cocoa-dev@lists.apple.com Subject: Help

Re: Visualization strategy/choosing a framework

2009-01-08 Thread Adam Foltzer
Just wanted to update for anyone who might be interested -- OpenGL turned out to be perfect for this. After only the first three chapters of the OpenGL SuperBible (and a little help from the Hillegass OpenGL chapter), I've got a visualization up and running with great performance. Now I need to

[newbie] Use of accessors versus direct access of ivars

2009-01-08 Thread Stuart Malin
I have a class with ivars for which there are accessors. I understand that the importance of using a setter method (or to use setValue:ForKey:) to set the ivar so that KVO operates. However, Is there a compelling reason to use, in the methods of a class, a getter method (or valueForKey:)

Re: Getting to the Console Logs

2009-01-08 Thread Jerry Krinock
On 2009 Jan, 08, at 15:25, Reza Farhad wrote: To get to the bottom of some bugs, I want to also have a look at the console Logs that might have been generated by my app or relating to my app. Now where are these files or how can I extract them programatically. Well, this is not the right

Re: [newbie] Use of accessors versus direct access of ivars

2009-01-08 Thread Adam Foltzer
Hi Stuart, I'm still something of a neophyte, but a theme I've found in threads here is that consistent use of accessors tends to save memory management headaches if you're not using garbage collection. If you use @property and @synthesize to generate your accessors, and then use them to both

Re: NSPersistentStoreCoordinator Wars Episode I: The Phantom Lock Menace

2009-01-08 Thread sanchezm
Nick, I can't be sure on what thread access pattern you are following in your application, but it sounds like you might be trying to access the same object and managed object context instances from different threads. This is tough to get right. The preferred way of doing this is to have

Re: [newbie] Use of accessors versus direct access of ivars

2009-01-08 Thread Quincey Morris
On Jan 8, 2009, at 21:27, Stuart Malin wrote: I have a class with ivars for which there are accessors. I understand that the importance of using a setter method (or to use setValue:ForKey:) to set the ivar so that KVO operates. However, Is there a compelling reason to use, in the methods

re: NSPersistentStoreCoordinator Wars Episode I: The Phantom Lock Menace

2009-01-08 Thread Ben Trumbull
I'm working on a project that uses CoreData objects on multiple threads at once, where it's not uncommon for the main thread to be loading data at the same time that an NSOperation running in the background is processing a different set of data. Whenever I fetch or store data from an

Re: Best way to handle this

2009-01-08 Thread Ken Thomases
On Jan 8, 2009, at 7:49 PM, Nathan Kinsinger wrote: On Jan 8, 2009, at 4:20 PM, development2 wrote: I am hoping someone can help me figure out the best way to handle this, I am sure someone out there has some experience with this. I have some code that sends a command to an external

  1   2   >