You are on page 1of 1

CHAPTER 1: Layout Guides and grids 41

Related API

kGuideItemBoss

Locking and unlocking guides


Solution

To lock or unlock all guides, use kSetGuidePrefsCmdBoss.

To lock or unlock ruler guides associated with a specific layer, use kLockGuideLayerCmdBoss.

Related API

kGuideItemBoss

Turning snap to guides on and off


Solution

Use kSetSnapToPrefsCmdBoss.

Related API

kGuideItemBoss

Getting notified of guide and grid operations


Solution

1. Determine the command that is making the change in which you are interested.

2. See the API documentation page for that command.

3. Attach an observer to the subject changed by that command.

Related APIs

 IObserver

 ISubject

You might also like